From daf80f721b0c9f3a57f13dd9d8934e851ad17dd5 Mon Sep 17 00:00:00 2001 From: Andy Russell Date: Thu, 24 Jan 2019 15:49:03 -0500 Subject: expand unused doc comment diagnostic Report the diagnostic on macro expansions, and add a label indicating why the comment is unused. --- src/libstd/io/stdio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index 589fb455a19..d53a294fa6a 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -11,15 +11,15 @@ use crate::sys::stdio; use crate::sys_common::remutex::{ReentrantMutex, ReentrantMutexGuard}; use crate::thread::LocalKey; -/// Stdout used by print! and println! macros thread_local! { + /// Stdout used by print! and println! macros static LOCAL_STDOUT: RefCell>> = { RefCell::new(None) } } -/// Stderr used by eprint! and eprintln! macros, and panics thread_local! { + /// Stderr used by eprint! and eprintln! macros, and panics static LOCAL_STDERR: RefCell>> = { RefCell::new(None) } -- cgit 1.4.1-3-g733a5