Use allow(unused_imports) instead of cfg(doc)
This prevents links from breaking when items are re-exported in a different crate and the original isn't being documented.
This commit is contained in:
parent
9d606d939a
commit
602dd145a3
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user