11use std:: borrow:: Cow ;
22
33use rustc:: mir:: interpret:: {
4- read_target_uint, AllocId , GlobalAlloc , Allocation , ConstValue , EvalResult , GlobalId , Scalar ,
4+ read_target_uint, AllocId , GlobalAlloc , Allocation , ConstValue , InterpResult , GlobalId , Scalar ,
55} ;
66use rustc:: ty:: Const ;
77use rustc_mir:: interpret:: {
@@ -140,7 +140,7 @@ fn trans_const_place<'a, 'tcx: 'a>(
140140 const_ : Const < ' tcx > ,
141141) -> CPlace < ' tcx > {
142142 // Adapted from https://github.com/rust-lang/rust/pull/53671/files#diff-e0b58bb6712edaa8595ad7237542c958L551
143- let result = || -> EvalResult < ' tcx , & ' tcx Allocation > {
143+ let result = || -> InterpResult < ' tcx , & ' tcx Allocation > {
144144 let mut ecx = InterpretCx :: new (
145145 fx. tcx . at ( DUMMY_SP ) ,
146146 ty:: ParamEnv :: reveal_all ( ) ,
@@ -349,7 +349,7 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
349349 false
350350 }
351351
352- fn before_terminator ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > ) -> EvalResult < ' tcx > {
352+ fn before_terminator ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > ) -> InterpResult < ' tcx > {
353353 panic ! ( ) ;
354354 }
355355
@@ -359,7 +359,7 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
359359 _: & [ OpTy < ' tcx > ] ,
360360 _: Option < PlaceTy < ' tcx > > ,
361361 _: Option < BasicBlock > ,
362- ) -> EvalResult < ' tcx , Option < & ' mir Body < ' tcx > > > {
362+ ) -> InterpResult < ' tcx , Option < & ' mir Body < ' tcx > > > {
363363 panic ! ( ) ;
364364 }
365365
@@ -368,14 +368,14 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
368368 _: Instance < ' tcx > ,
369369 _: & [ OpTy < ' tcx > ] ,
370370 _: PlaceTy < ' tcx > ,
371- ) -> EvalResult < ' tcx > {
371+ ) -> InterpResult < ' tcx > {
372372 panic ! ( ) ;
373373 }
374374
375375 fn find_foreign_static (
376376 _: DefId ,
377377 _: :: rustc:: ty:: query:: TyCtxtAt < ' a , ' tcx , ' tcx > ,
378- ) -> EvalResult < ' tcx , Cow < ' tcx , Allocation > > {
378+ ) -> InterpResult < ' tcx , Cow < ' tcx , Allocation > > {
379379 panic ! ( ) ;
380380 }
381381
@@ -384,11 +384,11 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
384384 _: mir:: BinOp ,
385385 _: ImmTy < ' tcx > ,
386386 _: ImmTy < ' tcx > ,
387- ) -> EvalResult < ' tcx , ( Scalar , bool ) > {
387+ ) -> InterpResult < ' tcx , ( Scalar , bool ) > {
388388 panic ! ( ) ;
389389 }
390390
391- fn box_alloc ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > , _: PlaceTy < ' tcx > ) -> EvalResult < ' tcx > {
391+ fn box_alloc ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > , _: PlaceTy < ' tcx > ) -> InterpResult < ' tcx > {
392392 panic ! ( ) ;
393393 }
394394
@@ -405,11 +405,11 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
405405 ( )
406406 }
407407
408- fn stack_push ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > ) -> EvalResult < ' tcx > {
408+ fn stack_push ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > ) -> InterpResult < ' tcx > {
409409 Ok ( ( ) )
410410 }
411411
412- fn stack_pop ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > , _: ( ) ) -> EvalResult < ' tcx > {
412+ fn stack_pop ( _: & mut InterpretCx < ' a , ' mir , ' tcx , Self > , _: ( ) ) -> InterpResult < ' tcx > {
413413 Ok ( ( ) )
414414 }
415415}
0 commit comments