Rework imports used solely for docs

This commit is contained in:
Denis Vasilik 2020-08-21 19:19:58 +02:00
parent 0f6d95d1eb
commit 37b6c249ed

View File

@ -53,18 +53,13 @@
issue = "none"
)]
#![allow(missing_docs)]
#![allow(unused_imports)]
use crate::marker::DiscriminantKind;
use crate::mem;
// These imports are used for simplifying intra-doc links
use crate::sync::atomic;
use crate::sync::atomic::AtomicBool;
use crate::sync::atomic::AtomicI32;
use crate::sync::atomic::AtomicIsize;
use crate::sync::atomic::AtomicU32;
use crate::sync::atomic::Ordering;
#[cfg(doc)]
use crate::sync::atomic::{self, AtomicBool, AtomicI32, AtomicIsize, AtomicU32, Ordering};
#[stable(feature = "drop_in_place", since = "1.8.0")]
#[rustc_deprecated(