File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
compiler/rustc_middle/src Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,6 @@ pub mod visit;
37
37
38
38
macro_rules! thir_with_elements {
39
39
(
40
- $( $field_name: ident: $field_ty: ty, ) *
41
-
42
- @elements:
43
40
$( $name: ident: $id: ty => $value: ty => $format: literal, ) *
44
41
) => {
45
42
$(
@@ -55,20 +52,16 @@ macro_rules! thir_with_elements {
55
52
/// This can be indexed directly by any THIR index (e.g. [`ExprId`]).
56
53
#[ derive( Debug , HashStable , Clone ) ]
57
54
pub struct Thir <' tcx> {
58
- $(
59
- pub $field_name: $field_ty,
60
- ) *
55
+ pub body_type: BodyTy <' tcx>,
61
56
$(
62
57
pub $name: IndexVec <$id, $value>,
63
58
) *
64
59
}
65
60
66
61
impl <' tcx> Thir <' tcx> {
67
- pub fn new( $ ( $field_name : $field_ty , ) * ) -> Thir <' tcx> {
62
+ pub fn new( body_type : BodyTy < ' tcx> ) -> Thir <' tcx> {
68
63
Thir {
69
- $(
70
- $field_name,
71
- ) *
64
+ body_type,
72
65
$(
73
66
$name: IndexVec :: new( ) ,
74
67
) *
@@ -88,9 +81,6 @@ macro_rules! thir_with_elements {
88
81
}
89
82
90
83
thir_with_elements ! {
91
- body_type: BodyTy <' tcx>,
92
-
93
- @elements:
94
84
arms: ArmId => Arm <' tcx> => "a{}" ,
95
85
blocks: BlockId => Block => "b{}" ,
96
86
exprs: ExprId => Expr <' tcx> => "e{}" ,
You can’t perform that action at this time.
0 commit comments