@@ -21,7 +21,7 @@ use rand::RngCore;
2121
2222use crate :: * ;
2323
24- impl < ' mir , ' tcx : ' mir > EvalContextExt < ' mir , ' tcx > for crate :: MiriEvalContext < ' mir , ' tcx > { }
24+ impl < ' mir , ' tcx : ' mir > EvalContextExt < ' mir , ' tcx > for crate :: MiriInterpCx < ' mir , ' tcx > { }
2525
2626// This mapping should match `decode_error_kind` in
2727// <https://github.com/rust-lang/rust/blob/master/library/std/src/sys/unix/mod.rs>.
@@ -96,7 +96,7 @@ fn try_resolve_did<'tcx>(tcx: TyCtxt<'tcx>, path: &[&str]) -> Option<DefId> {
9696 )
9797}
9898
99- pub trait EvalContextExt < ' mir , ' tcx : ' mir > : crate :: MiriEvalContextExt < ' mir , ' tcx > {
99+ pub trait EvalContextExt < ' mir , ' tcx : ' mir > : crate :: MiriInterpCxExt < ' mir , ' tcx > {
100100 /// Gets an instance for a path; fails gracefully if the path does not exist.
101101 fn try_resolve_path ( & self , path : & [ & str ] ) -> Option < ty:: Instance < ' tcx > > {
102102 let did = try_resolve_did ( self . eval_context_ref ( ) . tcx . tcx , path) ?;
@@ -391,19 +391,19 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
391391 where
392392 F : FnMut ( & MPlaceTy < ' tcx , Provenance > ) -> InterpResult < ' tcx > ,
393393 {
394- ecx : & ' ecx MiriEvalContext < ' mir , ' tcx > ,
394+ ecx : & ' ecx MiriInterpCx < ' mir , ' tcx > ,
395395 unsafe_cell_action : F ,
396396 }
397397
398- impl < ' ecx , ' mir , ' tcx : ' mir , F > ValueVisitor < ' mir , ' tcx , Evaluator < ' mir , ' tcx > >
398+ impl < ' ecx , ' mir , ' tcx : ' mir , F > ValueVisitor < ' mir , ' tcx , MiriMachine < ' mir , ' tcx > >
399399 for UnsafeCellVisitor < ' ecx , ' mir , ' tcx , F >
400400 where
401401 F : FnMut ( & MPlaceTy < ' tcx , Provenance > ) -> InterpResult < ' tcx > ,
402402 {
403403 type V = MPlaceTy < ' tcx , Provenance > ;
404404
405405 #[ inline( always) ]
406- fn ecx ( & self ) -> & MiriEvalContext < ' mir , ' tcx > {
406+ fn ecx ( & self ) -> & MiriInterpCx < ' mir , ' tcx > {
407407 self . ecx
408408 }
409409
@@ -883,7 +883,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
883883 }
884884}
885885
886- impl < ' mir , ' tcx > Evaluator < ' mir , ' tcx > {
886+ impl < ' mir , ' tcx > MiriMachine < ' mir , ' tcx > {
887887 pub fn current_span ( & self ) -> CurrentSpan < ' _ , ' mir , ' tcx > {
888888 CurrentSpan { current_frame_idx : None , machine : self }
889889 }
@@ -896,11 +896,11 @@ impl<'mir, 'tcx> Evaluator<'mir, 'tcx> {
896896#[ derive( Clone ) ]
897897pub struct CurrentSpan < ' a , ' mir , ' tcx > {
898898 current_frame_idx : Option < usize > ,
899- machine : & ' a Evaluator < ' mir , ' tcx > ,
899+ machine : & ' a MiriMachine < ' mir , ' tcx > ,
900900}
901901
902902impl < ' a , ' mir : ' a , ' tcx : ' a + ' mir > CurrentSpan < ' a , ' mir , ' tcx > {
903- pub fn machine ( & self ) -> & ' a Evaluator < ' mir , ' tcx > {
903+ pub fn machine ( & self ) -> & ' a MiriMachine < ' mir , ' tcx > {
904904 self . machine
905905 }
906906
@@ -919,7 +919,7 @@ impl<'a, 'mir: 'a, 'tcx: 'a + 'mir> CurrentSpan<'a, 'mir, 'tcx> {
919919 Self :: frame_span ( self . machine , idx. wrapping_sub ( 1 ) )
920920 }
921921
922- fn frame_span ( machine : & Evaluator < ' _ , ' _ > , idx : usize ) -> Span {
922+ fn frame_span ( machine : & MiriMachine < ' _ , ' _ > , idx : usize ) -> Span {
923923 machine
924924 . threads
925925 . active_thread_stack ( )
@@ -937,7 +937,7 @@ impl<'a, 'mir: 'a, 'tcx: 'a + 'mir> CurrentSpan<'a, 'mir, 'tcx> {
937937 // Find the position of the inner-most frame which is part of the crate being
938938 // compiled/executed, part of the Cargo workspace, and is also not #[track_caller].
939939 #[ inline( never) ]
940- fn compute_current_frame_index ( machine : & Evaluator < ' _ , ' _ > ) -> usize {
940+ fn compute_current_frame_index ( machine : & MiriMachine < ' _ , ' _ > ) -> usize {
941941 machine
942942 . threads
943943 . active_thread_stack ( )
0 commit comments