diff options
| author | Ashley Mannix <kodraus@hey.com> | 2021-01-13 14:39:19 +1000 |
|---|---|---|
| committer | KodrAus <kodraus@hey.com> | 2021-01-13 16:30:29 +1000 |
| commit | d65cb6ebcedadbfdf190975228e5db7a5c8f1555 (patch) | |
| tree | 6fc4a1804374987914146b194f7f32b5dce18deb /library/alloc/src | |
| parent | da305a2b00530aa34dea4e48389204c26fa35dbb (diff) | |
| download | rust-d65cb6ebcedadbfdf190975228e5db7a5c8f1555.tar.gz rust-d65cb6ebcedadbfdf190975228e5db7a5c8f1555.zip | |
deprecate atomic::spin_loop_hint in favour of hint::spin_loop
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/sync/tests.rs | 2 |
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(); } |
