@@ -7,7 +7,7 @@ use rustc::hir::{Mutability, MutMutable, MutImmutable};
77use rustc:: mir:: RetagKind ;
88
99use crate :: {
10- EvalResult , EvalErrorKind , MiriEvalContext , HelpersEvalContextExt , Evaluator , MutValueVisitor ,
10+ EvalResult , InterpError , MiriEvalContext , HelpersEvalContextExt , Evaluator , MutValueVisitor ,
1111 MemoryKind , MiriMemoryKind , RangeMap , AllocId , Allocation , AllocationExtra ,
1212 Pointer , Immediate , ImmTy , PlaceTy , MPlaceTy ,
1313} ;
@@ -380,7 +380,7 @@ impl<'tcx> Stacks {
380380 ptr. tag, kind, ptr, size. bytes( ) ) ;
381381 let stacks = self . stacks . borrow ( ) ;
382382 for stack in stacks. iter ( ptr. offset , size) {
383- stack. deref ( ptr. tag , kind) . map_err ( EvalErrorKind :: MachineError ) ?;
383+ stack. deref ( ptr. tag , kind) . map_err ( InterpError :: MachineError ) ?;
384384 }
385385 Ok ( ( ) )
386386 }
@@ -435,7 +435,7 @@ impl<'tcx> Stacks {
435435 let mut stacks = self . stacks . borrow_mut ( ) ;
436436 for stack in stacks. iter_mut ( ptr. offset , size) {
437437 // Access source `ptr`, create new ref.
438- let ptr_idx = stack. deref ( ptr. tag , new_kind) . map_err ( EvalErrorKind :: MachineError ) ?;
438+ let ptr_idx = stack. deref ( ptr. tag , new_kind) . map_err ( InterpError :: MachineError ) ?;
439439 // If we can deref the new tag already, and if that tag lives higher on
440440 // the stack than the one we come from, just use that.
441441 // That is, we check if `new_bor` *already* is "derived from" `ptr.tag`.
0 commit comments