Skip to content

Commit

Permalink
Use allow(unused_imports) instead of cfg(doc)
Browse files Browse the repository at this point in the history
This prevents links from breaking when items are re-exported in a
different crate and the original isn't being documented.
  • Loading branch information
jyn514 committed Aug 23, 2020
1 parent 9d606d9 commit 602dd14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 602dd14

Please sign in to comment.