@@ -5,7 +5,7 @@ use rustc::mir::interpret::{
55} ;
66use rustc:: ty:: Const ;
77use rustc_mir:: interpret:: {
8- EvalContext , ImmTy , MPlaceTy , Machine , Memory , MemoryKind , OpTy , PlaceTy , Pointer ,
8+ InterpretCx , ImmTy , MPlaceTy , Machine , Memory , MemoryKind , OpTy , PlaceTy , Pointer ,
99 StackPopCleanup ,
1010} ;
1111
@@ -135,7 +135,7 @@ fn trans_const_place<'a, 'tcx: 'a>(
135135) -> CPlace < ' tcx > {
136136 // Adapted from https://github.com/rust-lang/rust/pull/53671/files#diff-e0b58bb6712edaa8595ad7237542c958L551
137137 let result = || -> EvalResult < ' tcx , & ' tcx Allocation > {
138- let mut ecx = EvalContext :: new (
138+ let mut ecx = InterpretCx :: new (
139139 fx. tcx . at ( DUMMY_SP ) ,
140140 ty:: ParamEnv :: reveal_all ( ) ,
141141 TransPlaceInterpreter ,
@@ -338,16 +338,16 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
338338 type MemoryMap = FxHashMap < AllocId , ( MemoryKind < !> , Allocation < ( ) > ) > ;
339339 const STATIC_KIND : Option < !> = None ;
340340
341- fn enforce_validity ( _: & EvalContext < ' a , ' mir , ' tcx , Self > ) -> bool {
341+ fn enforce_validity ( _: & InterpretCx < ' a , ' mir , ' tcx , Self > ) -> bool {
342342 false
343343 }
344344
345- fn before_terminator ( _: & mut EvalContext < ' a , ' mir , ' tcx , Self > ) -> EvalResult < ' tcx > {
345+ fn before_terminator ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > ) -> EvalResult < ' tcx > {
346346 panic ! ( ) ;
347347 }
348348
349349 fn find_fn (
350- _: & mut EvalContext < ' a , ' mir , ' tcx , Self > ,
350+ _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > ,
351351 _: Instance < ' tcx > ,
352352 _: & [ OpTy < ' tcx > ] ,
353353 _: Option < PlaceTy < ' tcx > > ,
@@ -357,7 +357,7 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
357357 }
358358
359359 fn call_intrinsic (
360- _: & mut EvalContext < ' a , ' mir , ' tcx , Self > ,
360+ _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > ,
361361 _: Instance < ' tcx > ,
362362 _: & [ OpTy < ' tcx > ] ,
363363 _: PlaceTy < ' tcx > ,
@@ -374,20 +374,20 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
374374 }
375375
376376 fn ptr_op (
377- _: & EvalContext < ' a , ' mir , ' tcx , Self > ,
377+ _: & InterpretCx < ' a , ' mir , ' tcx , Self > ,
378378 _: mir:: BinOp ,
379379 _: ImmTy < ' tcx > ,
380380 _: ImmTy < ' tcx > ,
381381 ) -> EvalResult < ' tcx , ( Scalar , bool ) > {
382382 panic ! ( ) ;
383383 }
384384
385- fn box_alloc ( _: & mut EvalContext < ' a , ' mir , ' tcx , Self > , _: PlaceTy < ' tcx > ) -> EvalResult < ' tcx > {
385+ fn box_alloc ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > , _: PlaceTy < ' tcx > ) -> EvalResult < ' tcx > {
386386 panic ! ( ) ;
387387 }
388388
389389 fn tag_dereference (
390- _: & EvalContext < ' a , ' mir , ' tcx , Self > ,
390+ _: & InterpretCx < ' a , ' mir , ' tcx , Self > ,
391391 _: MPlaceTy < ' tcx > ,
392392 _: Option < :: rustc:: hir:: Mutability > ,
393393 ) -> EvalResult < ' tcx , Scalar > {
@@ -402,18 +402,18 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
402402 }
403403
404404 fn tag_new_allocation (
405- _: & mut EvalContext < ' a , ' mir , ' tcx , Self > ,
405+ _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > ,
406406 ptr : Pointer ,
407407 _: MemoryKind < !> ,
408408 ) -> Pointer {
409409 ptr
410410 }
411411
412- fn stack_push ( _: & mut EvalContext < ' a , ' mir , ' tcx , Self > ) -> EvalResult < ' tcx > {
412+ fn stack_push ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > ) -> EvalResult < ' tcx > {
413413 Ok ( ( ) )
414414 }
415415
416- fn stack_pop ( _: & mut EvalContext < ' a , ' mir , ' tcx , Self > , _: ( ) ) -> EvalResult < ' tcx > {
416+ fn stack_pop ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > , _: ( ) ) -> EvalResult < ' tcx > {
417417 Ok ( ( ) )
418418 }
419419}
0 commit comments