Skip to content

Commit

Permalink
Don't import atomics unless supported by the platform
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Aug 24, 2020
1 parent 602dd14 commit 5aac94a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ use crate::mem;

// These imports are used for simplifying intra-doc links
#[allow(unused_imports)]
#[cfg(all(target_has_atomic = "8", target_has_atomic = "32", target_has_atomic = "ptr"))]
use crate::sync::atomic::{self, AtomicBool, AtomicI32, AtomicIsize, AtomicU32, Ordering};

#[stable(feature = "drop_in_place", since = "1.8.0")]
Expand Down

0 comments on commit 5aac94a

Please sign in to comment.