diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-08-23 18:45:57 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-08-23 18:45:57 -0400 |
| commit | 602dd145a3f0bdb85793e3d9ab05e6e56b2e567f (patch) | |
| tree | 55c675bb8fe1b8f283d04edb79e0db50a904a733 | |
| parent | 9d606d939a61c2f4c7bb4d89d959b60a53f50241 (diff) | |
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.
| -rw-r--r-- | library/core/src/intrinsics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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")] |
