diff --git a/rust-version b/rust-version index 3c44be9d9a..0ff7406c56 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -a2cd91ceb0f156cb442d75e12dc77c3d064cdde4 +4e208f6a3afb42528878b0f3464e337c4bf3bbc8 diff --git a/src/data_race.rs b/src/data_race.rs index 44cce53957..d204d60f15 100644 --- a/src/data_race.rs +++ b/src/data_race.rs @@ -824,8 +824,7 @@ impl VClockAlloc { // Throw the data-race detection. throw_ub_format!( "Data race detected between {} on {} and {} on {}, memory({:?},offset={},size={})\ - \n\t\t -current vector clock = {:?}\ - \n\t\t -conflicting timestamp = {:?}", + \n(current vector clock = {:?}, conflicting timestamp = {:?})", action, current_thread_info, other_action, diff --git a/tests/run-pass/concurrency/sync_singlethread.rs b/tests/run-pass/concurrency/sync_singlethread.rs index ab0203906d..2474fe6633 100644 --- a/tests/run-pass/concurrency/sync_singlethread.rs +++ b/tests/run-pass/concurrency/sync_singlethread.rs @@ -50,6 +50,7 @@ impl TryLockErrorExt for TryLockError { } fn test_spin_loop_hint() { + #[allow(deprecated)] atomic::spin_loop_hint(); hint::spin_loop(); }