Skip to content

Commit

Permalink
fix(tests): duplicate hint mod defs with loom
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <[email protected]>
  • Loading branch information
hawkw committed Aug 2, 2021
1 parent dfcc908 commit 0ce3fd9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ mod inner {
cell::UnsafeCell, hint, lazy_static, sync::Mutex, thread::yield_now, thread_local,
};

pub(crate) mod hint {
pub(crate) use super::hint::spin_loop_hint as spin_loop;
}

pub(crate) mod alloc {
#![allow(dead_code)]
use loom::alloc;
Expand Down Expand Up @@ -76,7 +72,8 @@ mod inner {

pub(crate) mod hint {
#[inline(always)]
pub(crate) fn spin_loop() { // MSRV: std::hint::spin_loop() stabilized in 1.49.0
pub(crate) fn spin_loop() {
// MSRV: std::hint::spin_loop() stabilized in 1.49.0
#[allow(deprecated)]
super::atomic::spin_loop_hint()
}
Expand Down

0 comments on commit 0ce3fd9

Please sign in to comment.