@@ -105,7 +105,7 @@ pub struct GlobalState {
105105 /// The call id to trace
106106 tracked_call_id : Option < CallId > ,
107107 /// Whether to track raw pointers.
108- track_raw : bool ,
108+ tag_raw : bool ,
109109}
110110/// Memory extra state gives us interior mutable access to the global state.
111111pub type MemoryExtra = RefCell < GlobalState > ;
@@ -156,7 +156,7 @@ impl GlobalState {
156156 pub fn new (
157157 tracked_pointer_tag : Option < PtrId > ,
158158 tracked_call_id : Option < CallId > ,
159- track_raw : bool ,
159+ tag_raw : bool ,
160160 ) -> Self {
161161 GlobalState {
162162 next_ptr_id : NonZeroU64 :: new ( 1 ) . unwrap ( ) ,
@@ -165,7 +165,7 @@ impl GlobalState {
165165 active_calls : FxHashSet :: default ( ) ,
166166 tracked_pointer_tag,
167167 tracked_call_id,
168- track_raw ,
168+ tag_raw ,
169169 }
170170 }
171171
@@ -532,7 +532,7 @@ impl Stacks {
532532 MiriMemoryKind :: Rust | MiriMemoryKind :: C | MiriMemoryKind :: WinHeap ,
533533 ) => {
534534 let tag =
535- if extra. track_raw { extra. base_tag ( id) } else { extra. base_tag_untagged ( id) } ;
535+ if extra. tag_raw { extra. base_tag ( id) } else { extra. base_tag_untagged ( id) } ;
536536 ( tag, Permission :: SharedReadWrite )
537537 }
538538 } ;
@@ -719,7 +719,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
719719 let mem_extra = this. memory . extra . stacked_borrows . as_mut ( ) . unwrap ( ) . get_mut ( ) ;
720720 match kind {
721721 // Give up tracking for raw pointers.
722- RefKind :: Raw { .. } if !mem_extra. track_raw => SbTag :: Untagged ,
722+ RefKind :: Raw { .. } if !mem_extra. tag_raw => SbTag :: Untagged ,
723723 // All other pointers are properly tracked.
724724 _ => SbTag :: Tagged ( mem_extra. new_ptr ( ) ) ,
725725 }
0 commit comments