@@ -1208,7 +1208,7 @@ impl VClockAlloc {
1208
1208
ty : Option < Ty < ' _ > > ,
1209
1209
machine : & MiriMachine < ' _ > ,
1210
1210
) -> InterpResult < ' tcx > {
1211
- let current_span = machine. current_span ( ) ;
1211
+ let current_span = machine. current_user_relevant_span ( ) ;
1212
1212
let global = machine. data_race . as_vclocks_ref ( ) . unwrap ( ) ;
1213
1213
if !global. race_detecting ( ) {
1214
1214
return interp_ok ( ( ) ) ;
@@ -1250,7 +1250,7 @@ impl VClockAlloc {
1250
1250
ty : Option < Ty < ' _ > > ,
1251
1251
machine : & mut MiriMachine < ' _ > ,
1252
1252
) -> InterpResult < ' tcx > {
1253
- let current_span = machine. current_span ( ) ;
1253
+ let current_span = machine. current_user_relevant_span ( ) ;
1254
1254
let global = machine. data_race . as_vclocks_mut ( ) . unwrap ( ) ;
1255
1255
if !global. race_detecting ( ) {
1256
1256
return interp_ok ( ( ) ) ;
@@ -1304,7 +1304,7 @@ impl Default for LocalClocks {
1304
1304
1305
1305
impl FrameState {
1306
1306
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 ( ) ;
1308
1308
let global = machine. data_race . as_vclocks_ref ( ) . unwrap ( ) ;
1309
1309
if !global. race_detecting ( ) {
1310
1310
return ;
@@ -1334,7 +1334,7 @@ impl FrameState {
1334
1334
}
1335
1335
1336
1336
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 ( ) ;
1338
1338
let global = machine. data_race . as_vclocks_ref ( ) . unwrap ( ) ;
1339
1339
if !global. race_detecting ( ) {
1340
1340
return ;
@@ -1573,7 +1573,7 @@ trait EvalContextPrivExt<'tcx>: MiriInterpCxExt<'tcx> {
1573
1573
size. bytes( )
1574
1574
) ;
1575
1575
1576
- let current_span = this. machine . current_span ( ) ;
1576
+ let current_span = this. machine . current_user_relevant_span ( ) ;
1577
1577
// Perform the atomic operation.
1578
1578
data_race. maybe_perform_sync_operation (
1579
1579
& this. machine . threads ,
@@ -1827,7 +1827,7 @@ impl GlobalState {
1827
1827
machine : & MiriMachine < ' tcx > ,
1828
1828
atomic : AtomicFenceOrd ,
1829
1829
) -> InterpResult < ' tcx > {
1830
- let current_span = machine. current_span ( ) ;
1830
+ let current_span = machine. current_user_relevant_span ( ) ;
1831
1831
self . maybe_perform_sync_operation ( & machine. threads , current_span, |index, mut clocks| {
1832
1832
trace ! ( "Atomic fence on {:?} with ordering {:?}" , index, atomic) ;
1833
1833
@@ -1915,7 +1915,7 @@ impl GlobalState {
1915
1915
callback : impl FnOnce ( & VClock ) -> R ,
1916
1916
) -> R {
1917
1917
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 ( ) ;
1919
1919
let ( index, mut clocks) = self . thread_state_mut ( thread) ;
1920
1920
let r = callback ( & clocks. clock ) ;
1921
1921
// Increment the clock, so that all following events cannot be confused with anything that
0 commit comments