@@ -1208,7 +1208,7 @@ impl VClockAlloc {
12081208 ty : Option < Ty < ' _ > > ,
12091209 machine : & MiriMachine < ' _ > ,
12101210 ) -> InterpResult < ' tcx > {
1211- let current_span = machine. current_span ( ) ;
1211+ let current_span = machine. current_user_relevant_span ( ) ;
12121212 let global = machine. data_race . as_vclocks_ref ( ) . unwrap ( ) ;
12131213 if !global. race_detecting ( ) {
12141214 return interp_ok ( ( ) ) ;
@@ -1250,7 +1250,7 @@ impl VClockAlloc {
12501250 ty : Option < Ty < ' _ > > ,
12511251 machine : & mut MiriMachine < ' _ > ,
12521252 ) -> InterpResult < ' tcx > {
1253- let current_span = machine. current_span ( ) ;
1253+ let current_span = machine. current_user_relevant_span ( ) ;
12541254 let global = machine. data_race . as_vclocks_mut ( ) . unwrap ( ) ;
12551255 if !global. race_detecting ( ) {
12561256 return interp_ok ( ( ) ) ;
@@ -1304,7 +1304,7 @@ impl Default for LocalClocks {
13041304
13051305impl FrameState {
13061306 pub fn local_write ( & self , local : mir:: Local , storage_live : bool , machine : & MiriMachine < ' _ > ) {
1307- let current_span = machine. current_span ( ) ;
1307+ let current_span = machine. current_user_relevant_span ( ) ;
13081308 let global = machine. data_race . as_vclocks_ref ( ) . unwrap ( ) ;
13091309 if !global. race_detecting ( ) {
13101310 return ;
@@ -1334,7 +1334,7 @@ impl FrameState {
13341334 }
13351335
13361336 pub fn local_read ( & self , local : mir:: Local , machine : & MiriMachine < ' _ > ) {
1337- let current_span = machine. current_span ( ) ;
1337+ let current_span = machine. current_user_relevant_span ( ) ;
13381338 let global = machine. data_race . as_vclocks_ref ( ) . unwrap ( ) ;
13391339 if !global. race_detecting ( ) {
13401340 return ;
@@ -1573,7 +1573,7 @@ trait EvalContextPrivExt<'tcx>: MiriInterpCxExt<'tcx> {
15731573 size. bytes( )
15741574 ) ;
15751575
1576- let current_span = this. machine . current_span ( ) ;
1576+ let current_span = this. machine . current_user_relevant_span ( ) ;
15771577 // Perform the atomic operation.
15781578 data_race. maybe_perform_sync_operation (
15791579 & this. machine . threads ,
@@ -1827,7 +1827,7 @@ impl GlobalState {
18271827 machine : & MiriMachine < ' tcx > ,
18281828 atomic : AtomicFenceOrd ,
18291829 ) -> InterpResult < ' tcx > {
1830- let current_span = machine. current_span ( ) ;
1830+ let current_span = machine. current_user_relevant_span ( ) ;
18311831 self . maybe_perform_sync_operation ( & machine. threads , current_span, |index, mut clocks| {
18321832 trace ! ( "Atomic fence on {:?} with ordering {:?}" , index, atomic) ;
18331833
@@ -1915,7 +1915,7 @@ impl GlobalState {
19151915 callback : impl FnOnce ( & VClock ) -> R ,
19161916 ) -> R {
19171917 let thread = threads. active_thread ( ) ;
1918- let span = threads. active_thread_ref ( ) . current_span ( ) ;
1918+ let span = threads. active_thread_ref ( ) . current_user_relevant_span ( ) ;
19191919 let ( index, mut clocks) = self . thread_state_mut ( thread) ;
19201920 let r = callback ( & clocks. clock ) ;
19211921 // Increment the clock, so that all following events cannot be confused with anything that
0 commit comments