@@ -32,7 +32,7 @@ crate enum LintLevel {
32
32
Explicit ( hir:: HirId ) ,
33
33
}
34
34
35
- #[ derive( Clone , Debug ) ]
35
+ #[ derive( Debug ) ]
36
36
crate struct Block < ' tcx > {
37
37
crate targeted_by_break : bool ,
38
38
crate region_scope : region:: Scope ,
@@ -51,13 +51,13 @@ crate enum BlockSafety {
51
51
PopUnsafe ,
52
52
}
53
53
54
- #[ derive( Clone , Debug ) ]
54
+ #[ derive( Debug ) ]
55
55
crate struct Stmt < ' tcx > {
56
56
crate kind : StmtKind < ' tcx > ,
57
57
crate opt_destruction_scope : Option < region:: Scope > ,
58
58
}
59
59
60
- #[ derive( Clone , Debug ) ]
60
+ #[ derive( Debug ) ]
61
61
crate enum StmtKind < ' tcx > {
62
62
Expr {
63
63
/// scope for this statement; may be used as lifetime of temporaries
@@ -107,7 +107,7 @@ rustc_data_structures::static_assert_size!(Expr<'_>, 160);
107
107
/// MIR simplifications are already done in the impl of `Thir`. For
108
108
/// example, method calls and overloaded operators are absent: they are
109
109
/// expected to be converted into `Expr::Call` instances.
110
- #[ derive( Clone , Debug ) ]
110
+ #[ derive( Debug ) ]
111
111
crate struct Expr < ' tcx > {
112
112
/// type of this expression
113
113
crate ty : Ty < ' tcx > ,
@@ -123,7 +123,7 @@ crate struct Expr<'tcx> {
123
123
crate kind : ExprKind < ' tcx > ,
124
124
}
125
125
126
- #[ derive( Clone , Debug ) ]
126
+ #[ derive( Debug ) ]
127
127
crate enum ExprKind < ' tcx > {
128
128
Scope {
129
129
region_scope : region:: Scope ,
@@ -312,19 +312,19 @@ crate enum ExprKind<'tcx> {
312
312
} ,
313
313
}
314
314
315
- #[ derive( Clone , Debug ) ]
315
+ #[ derive( Debug ) ]
316
316
crate struct FieldExpr < ' tcx > {
317
317
crate name : Field ,
318
318
crate expr : Expr < ' tcx > ,
319
319
}
320
320
321
- #[ derive( Clone , Debug ) ]
321
+ #[ derive( Debug ) ]
322
322
crate struct FruInfo < ' tcx > {
323
323
crate base : Box < Expr < ' tcx > > ,
324
324
crate field_types : Vec < Ty < ' tcx > > ,
325
325
}
326
326
327
- #[ derive( Clone , Debug ) ]
327
+ #[ derive( Debug ) ]
328
328
crate struct Arm < ' tcx > {
329
329
crate pattern : Pat < ' tcx > ,
330
330
crate guard : Option < Guard < ' tcx > > ,
@@ -334,7 +334,7 @@ crate struct Arm<'tcx> {
334
334
crate span : Span ,
335
335
}
336
336
337
- #[ derive( Clone , Debug ) ]
337
+ #[ derive( Debug ) ]
338
338
crate enum Guard < ' tcx > {
339
339
If ( Box < Expr < ' tcx > > ) ,
340
340
IfLet ( Pat < ' tcx > , Box < Expr < ' tcx > > ) ,
@@ -346,7 +346,7 @@ crate enum LogicalOp {
346
346
Or ,
347
347
}
348
348
349
- #[ derive( Clone , Debug ) ]
349
+ #[ derive( Debug ) ]
350
350
crate enum InlineAsmOperand < ' tcx > {
351
351
In {
352
352
reg : InlineAsmRegOrRegClass ,
0 commit comments