@@ -105,8 +105,8 @@ impl<'tcx> Evaluator<'tcx> {
105
105
}
106
106
}
107
107
108
- /// A rustc InterpretCx for Miri.
109
- pub type MiriEvalContext < ' mir , ' tcx > = InterpretCx < ' mir , ' tcx , Evaluator < ' tcx > > ;
108
+ /// A rustc InterpCx for Miri.
109
+ pub type MiriEvalContext < ' mir , ' tcx > = InterpCx < ' mir , ' tcx , Evaluator < ' tcx > > ;
110
110
111
111
/// A little trait that's useful to be inherited by extension traits.
112
112
pub trait MiriEvalContextExt < ' mir , ' tcx > {
@@ -138,14 +138,14 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> {
138
138
const STATIC_KIND : Option < MiriMemoryKind > = Some ( MiriMemoryKind :: Static ) ;
139
139
140
140
#[ inline( always) ]
141
- fn enforce_validity ( ecx : & InterpretCx < ' mir , ' tcx , Self > ) -> bool {
141
+ fn enforce_validity ( ecx : & InterpCx < ' mir , ' tcx , Self > ) -> bool {
142
142
ecx. memory ( ) . extra . validate
143
143
}
144
144
145
145
/// Returns `Ok()` when the function was handled; fail otherwise.
146
146
#[ inline( always) ]
147
147
fn find_fn (
148
- ecx : & mut InterpretCx < ' mir , ' tcx , Self > ,
148
+ ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
149
149
instance : ty:: Instance < ' tcx > ,
150
150
args : & [ OpTy < ' tcx , Tag > ] ,
151
151
dest : Option < PlaceTy < ' tcx , Tag > > ,
@@ -156,7 +156,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> {
156
156
157
157
#[ inline( always) ]
158
158
fn call_intrinsic (
159
- ecx : & mut rustc_mir:: interpret:: InterpretCx < ' mir , ' tcx , Self > ,
159
+ ecx : & mut rustc_mir:: interpret:: InterpCx < ' mir , ' tcx , Self > ,
160
160
instance : ty:: Instance < ' tcx > ,
161
161
args : & [ OpTy < ' tcx , Tag > ] ,
162
162
dest : PlaceTy < ' tcx , Tag > ,
@@ -166,7 +166,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> {
166
166
167
167
#[ inline( always) ]
168
168
fn ptr_op (
169
- ecx : & rustc_mir:: interpret:: InterpretCx < ' mir , ' tcx , Self > ,
169
+ ecx : & rustc_mir:: interpret:: InterpCx < ' mir , ' tcx , Self > ,
170
170
bin_op : mir:: BinOp ,
171
171
left : ImmTy < ' tcx , Tag > ,
172
172
right : ImmTy < ' tcx , Tag > ,
@@ -175,7 +175,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> {
175
175
}
176
176
177
177
fn box_alloc (
178
- ecx : & mut InterpretCx < ' mir , ' tcx , Self > ,
178
+ ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
179
179
dest : PlaceTy < ' tcx , Tag > ,
180
180
) -> InterpResult < ' tcx > {
181
181
trace ! ( "box_alloc for {:?}" , dest. layout. ty) ;
@@ -241,7 +241,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> {
241
241
}
242
242
243
243
#[ inline( always) ]
244
- fn before_terminator ( _ecx : & mut InterpretCx < ' mir , ' tcx , Self > ) -> InterpResult < ' tcx >
244
+ fn before_terminator ( _ecx : & mut InterpCx < ' mir , ' tcx , Self > ) -> InterpResult < ' tcx >
245
245
{
246
246
// We are not interested in detecting loops.
247
247
Ok ( ( ) )
@@ -311,7 +311,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> {
311
311
312
312
#[ inline( always) ]
313
313
fn retag (
314
- ecx : & mut InterpretCx < ' mir , ' tcx , Self > ,
314
+ ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
315
315
kind : mir:: RetagKind ,
316
316
place : PlaceTy < ' tcx , Tag > ,
317
317
) -> InterpResult < ' tcx > {
@@ -325,14 +325,14 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for Evaluator<'tcx> {
325
325
326
326
#[ inline( always) ]
327
327
fn stack_push (
328
- ecx : & mut InterpretCx < ' mir , ' tcx , Self > ,
328
+ ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
329
329
) -> InterpResult < ' tcx , stacked_borrows:: CallId > {
330
330
Ok ( ecx. memory ( ) . extra . stacked_borrows . borrow_mut ( ) . new_call ( ) )
331
331
}
332
332
333
333
#[ inline( always) ]
334
334
fn stack_pop (
335
- ecx : & mut InterpretCx < ' mir , ' tcx , Self > ,
335
+ ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
336
336
extra : stacked_borrows:: CallId ,
337
337
) -> InterpResult < ' tcx > {
338
338
Ok ( ecx. memory ( ) . extra . stacked_borrows . borrow_mut ( ) . end_call ( extra) )
0 commit comments