From 25c034c52e90969d53aba3351a204c6ae3473a0c Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sun, 23 Aug 2020 18:51:28 -0400 Subject: [PATCH] Use allow(unused_imports) instead of cfg(doc) for imports used only for intra-doc links --- library/std/src/sys_common/poison.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sys_common/poison.rs b/library/std/src/sys_common/poison.rs index 03119e9a373..3f079da9098 100644 --- a/library/std/src/sys_common/poison.rs +++ b/library/std/src/sys_common/poison.rs @@ -3,7 +3,7 @@ use crate::fmt; use crate::sync::atomic::{AtomicBool, Ordering}; use crate::thread; -#[cfg(doc)] +#[allow(unused_imports)] // for intra-doc links use crate::sync::{Mutex, RwLock}; pub struct Flag {