File tree 2 files changed +12
-12
lines changed
compiler/rustc_middle/src
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,9 @@ pub struct LocalVarId(pub hir::HirId);
237
237
/// A THIR expression.
238
238
#[ derive( Clone , Debug , HashStable ) ]
239
239
pub struct Expr < ' tcx > {
240
+ /// kind of expression
241
+ pub kind : ExprKind < ' tcx > ,
242
+
240
243
/// The type of this expression
241
244
pub ty : Ty < ' tcx > ,
242
245
@@ -246,9 +249,6 @@ pub struct Expr<'tcx> {
246
249
247
250
/// span of the expression in the source
248
251
pub span : Span ,
249
-
250
- /// kind of expression
251
- pub kind : ExprKind < ' tcx > ,
252
252
}
253
253
254
254
#[ derive( Clone , Debug , HashStable ) ]
Original file line number Diff line number Diff line change @@ -17,40 +17,40 @@ Thir {
17
17
],
18
18
exprs: [
19
19
Expr {
20
- ty: (),
21
- temp_lifetime: Some(
22
- Node(2),
23
- ),
24
- span: $DIR/thir-flat.rs:4:15: 4:17 (#0),
25
20
kind: Block {
26
21
block: b0,
27
22
},
28
- },
29
- Expr {
30
23
ty: (),
31
24
temp_lifetime: Some(
32
25
Node(2),
33
26
),
34
27
span: $DIR/thir-flat.rs:4:15: 4:17 (#0),
28
+ },
29
+ Expr {
35
30
kind: Scope {
36
31
region_scope: Node(2),
37
32
lint_level: Explicit(
38
33
HirId(DefId(0:3 ~ thir_flat[45a6]::main).2),
39
34
),
40
35
value: e0,
41
36
},
42
- },
43
- Expr {
44
37
ty: (),
45
38
temp_lifetime: Some(
46
39
Node(2),
47
40
),
48
41
span: $DIR/thir-flat.rs:4:15: 4:17 (#0),
42
+ },
43
+ Expr {
49
44
kind: Scope {
50
45
region_scope: Destruction(2),
51
46
lint_level: Inherited,
52
47
value: e1,
53
48
},
49
+ ty: (),
50
+ temp_lifetime: Some(
51
+ Node(2),
52
+ ),
53
+ span: $DIR/thir-flat.rs:4:15: 4:17 (#0),
54
54
},
55
55
],
56
56
stmts: [],
You can’t perform that action at this time.
0 commit comments