We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 005c023 commit eba02e8Copy full SHA for eba02e8
src/backoff.rs
@@ -1,6 +1,5 @@
1
/// Vendored and simplified from crossbeam-utils
2
use core::cell::Cell;
3
-use core::sync::atomic;
4
5
const SPIN_LIMIT: u32 = 6;
6
@@ -31,9 +30,7 @@ impl Backoff {
31
30
#[inline]
32
pub fn spin(&self) {
33
for _ in 0..1 << self.step.get().min(SPIN_LIMIT) {
34
- // `hint::spin_loop` requires Rust 1.49.
35
- #[allow(deprecated)]
36
- atomic::spin_loop_hint();
+ core::hint::spin_loop();
37
}
38
39
if self.step.get() <= SPIN_LIMIT {
0 commit comments