Skip to content

Commit 602dd14

Browse files
committed
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.
1 parent 9d606d9 commit 602dd14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ use crate::marker::DiscriminantKind;
5858
use crate::mem;
5959

6060
// These imports are used for simplifying intra-doc links
61-
#[cfg(doc)]
61+
#[allow(unused_imports)]
6262
use crate::sync::atomic::{self, AtomicBool, AtomicI32, AtomicIsize, AtomicU32, Ordering};
6363

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

0 commit comments

Comments
 (0)