提交 602dd145 编写于 作者: J Joshua Nelson

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.
上级 9d606d93
......@@ -58,7 +58,7 @@
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")]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册