Skip to content

Commit 37b6c24

Browse files
committed
Rework imports used solely for docs
1 parent 0f6d95d commit 37b6c24

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

library/core/src/intrinsics.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,13 @@
5353
issue = "none"
5454
)]
5555
#![allow(missing_docs)]
56-
#![allow(unused_imports)]
5756

5857
use crate::marker::DiscriminantKind;
5958
use crate::mem;
6059

6160
// These imports are used for simplifying intra-doc links
62-
use crate::sync::atomic;
63-
use crate::sync::atomic::AtomicBool;
64-
use crate::sync::atomic::AtomicI32;
65-
use crate::sync::atomic::AtomicIsize;
66-
use crate::sync::atomic::AtomicU32;
67-
use crate::sync::atomic::Ordering;
61+
#[cfg(doc)]
62+
use crate::sync::atomic::{self, AtomicBool, AtomicI32, AtomicIsize, AtomicU32, Ordering};
6863

6964
#[stable(feature = "drop_in_place", since = "1.8.0")]
7065
#[rustc_deprecated(

0 commit comments

Comments
 (0)