diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index 9acf43931c6..95edf463b83 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -58,7 +58,7 @@ use crate::marker::DiscriminantKind; use crate::mem; // These imports are used for simplifying intra-doc links -#[cfg(doc)] +#[allow(unused_imports)] use crate::sync::atomic::{self, AtomicBool, AtomicI32, AtomicIsize, AtomicU32, Ordering}; #[stable(feature = "drop_in_place", since = "1.8.0")]