about summary refs log tree commit diff
path: root/library/alloc/src/sync/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/alloc/src/sync/tests.rs')
-rw-r--r--library/alloc/src/sync/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/sync/tests.rs b/library/alloc/src/sync/tests.rs
index e8e1e66da5e..5067af1d4ff 100644
--- a/library/alloc/src/sync/tests.rs
+++ b/library/alloc/src/sync/tests.rs
@@ -370,7 +370,7 @@ fn test_weak_count_locked() {
         let n = Arc::weak_count(&a2);
         assert!(n < 2, "bad weak count: {}", n);
         #[cfg(miri)] // Miri's scheduler does not guarantee liveness, and thus needs this hint.
-        atomic::spin_loop_hint();
+        std::hint::spin_loop();
     }
     t.join().unwrap();
 }