@@ -44,20 +44,20 @@ impl HasStaticRootDefId for DummyMachine {
44
44
}
45
45
}
46
46
47
- impl < ' mir , ' tcx : ' mir > interpret:: Machine < ' mir , ' tcx > for DummyMachine {
48
- interpret:: compile_time_machine!( <' mir , ' tcx>) ;
47
+ impl < ' tcx > interpret:: Machine < ' tcx > for DummyMachine {
48
+ interpret:: compile_time_machine!( <' tcx>) ;
49
49
type MemoryKind = !;
50
50
const PANIC_ON_ALLOC_FAIL : bool = true ;
51
51
52
52
// We want to just eval random consts in the program, so `eval_mir_const` can fail.
53
53
const ALL_CONSTS_ARE_PRECHECKED : bool = false ;
54
54
55
55
#[ inline( always) ]
56
- fn enforce_alignment ( _ecx : & InterpCx < ' mir , ' tcx , Self > ) -> bool {
56
+ fn enforce_alignment ( _ecx : & InterpCx < ' tcx , Self > ) -> bool {
57
57
false // no reason to enforce alignment
58
58
}
59
59
60
- fn enforce_validity ( _ecx : & InterpCx < ' mir , ' tcx , Self > , _layout : TyAndLayout < ' tcx > ) -> bool {
60
+ fn enforce_validity ( _ecx : & InterpCx < ' tcx , Self > , _layout : TyAndLayout < ' tcx > ) -> bool {
61
61
false
62
62
}
63
63
@@ -83,26 +83,26 @@ impl<'mir, 'tcx: 'mir> interpret::Machine<'mir, 'tcx> for DummyMachine {
83
83
}
84
84
85
85
fn find_mir_or_eval_fn (
86
- _ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
86
+ _ecx : & mut InterpCx < ' tcx , Self > ,
87
87
_instance : ty:: Instance < ' tcx > ,
88
88
_abi : rustc_target:: spec:: abi:: Abi ,
89
89
_args : & [ interpret:: FnArg < ' tcx , Self :: Provenance > ] ,
90
90
_destination : & interpret:: MPlaceTy < ' tcx , Self :: Provenance > ,
91
91
_target : Option < BasicBlock > ,
92
92
_unwind : UnwindAction ,
93
- ) -> interpret:: InterpResult < ' tcx , Option < ( & ' mir Body < ' tcx > , ty:: Instance < ' tcx > ) > > {
93
+ ) -> interpret:: InterpResult < ' tcx , Option < ( & ' tcx Body < ' tcx > , ty:: Instance < ' tcx > ) > > {
94
94
unimplemented ! ( )
95
95
}
96
96
97
97
fn panic_nounwind (
98
- _ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
98
+ _ecx : & mut InterpCx < ' tcx , Self > ,
99
99
_msg : & str ,
100
100
) -> interpret:: InterpResult < ' tcx > {
101
101
unimplemented ! ( )
102
102
}
103
103
104
104
fn call_intrinsic (
105
- _ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
105
+ _ecx : & mut InterpCx < ' tcx , Self > ,
106
106
_instance : ty:: Instance < ' tcx > ,
107
107
_args : & [ interpret:: OpTy < ' tcx , Self :: Provenance > ] ,
108
108
_destination : & interpret:: MPlaceTy < ' tcx , Self :: Provenance > ,
@@ -113,15 +113,15 @@ impl<'mir, 'tcx: 'mir> interpret::Machine<'mir, 'tcx> for DummyMachine {
113
113
}
114
114
115
115
fn assert_panic (
116
- _ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
116
+ _ecx : & mut InterpCx < ' tcx , Self > ,
117
117
_msg : & rustc_middle:: mir:: AssertMessage < ' tcx > ,
118
118
_unwind : UnwindAction ,
119
119
) -> interpret:: InterpResult < ' tcx > {
120
120
unimplemented ! ( )
121
121
}
122
122
123
123
fn binary_ptr_op (
124
- ecx : & InterpCx < ' mir , ' tcx , Self > ,
124
+ ecx : & InterpCx < ' tcx , Self > ,
125
125
bin_op : BinOp ,
126
126
left : & interpret:: ImmTy < ' tcx , Self :: Provenance > ,
127
127
right : & interpret:: ImmTy < ' tcx , Self :: Provenance > ,
@@ -168,32 +168,30 @@ impl<'mir, 'tcx: 'mir> interpret::Machine<'mir, 'tcx> for DummyMachine {
168
168
}
169
169
170
170
fn expose_ptr (
171
- _ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
171
+ _ecx : & mut InterpCx < ' tcx , Self > ,
172
172
_ptr : interpret:: Pointer < Self :: Provenance > ,
173
173
) -> interpret:: InterpResult < ' tcx > {
174
174
unimplemented ! ( )
175
175
}
176
176
177
177
fn init_frame_extra (
178
- _ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
179
- _frame : interpret:: Frame < ' mir , ' tcx , Self :: Provenance > ,
180
- ) -> interpret:: InterpResult <
181
- ' tcx ,
182
- interpret:: Frame < ' mir , ' tcx , Self :: Provenance , Self :: FrameExtra > ,
183
- > {
178
+ _ecx : & mut InterpCx < ' tcx , Self > ,
179
+ _frame : interpret:: Frame < ' tcx , Self :: Provenance > ,
180
+ ) -> interpret:: InterpResult < ' tcx , interpret:: Frame < ' tcx , Self :: Provenance , Self :: FrameExtra > >
181
+ {
184
182
unimplemented ! ( )
185
183
}
186
184
187
185
fn stack < ' a > (
188
- _ecx : & ' a InterpCx < ' mir , ' tcx , Self > ,
189
- ) -> & ' a [ interpret:: Frame < ' mir , ' tcx , Self :: Provenance , Self :: FrameExtra > ] {
186
+ _ecx : & ' a InterpCx < ' tcx , Self > ,
187
+ ) -> & ' a [ interpret:: Frame < ' tcx , Self :: Provenance , Self :: FrameExtra > ] {
190
188
// Return an empty stack instead of panicking, as `cur_span` uses it to evaluate constants.
191
189
& [ ]
192
190
}
193
191
194
192
fn stack_mut < ' a > (
195
- _ecx : & ' a mut InterpCx < ' mir , ' tcx , Self > ,
196
- ) -> & ' a mut Vec < interpret:: Frame < ' mir , ' tcx , Self :: Provenance , Self :: FrameExtra > > {
193
+ _ecx : & ' a mut InterpCx < ' tcx , Self > ,
194
+ ) -> & ' a mut Vec < interpret:: Frame < ' tcx , Self :: Provenance , Self :: FrameExtra > > {
197
195
unimplemented ! ( )
198
196
}
199
197
}
0 commit comments