diff options
| author | bors <bors@rust-lang.org> | 2019-03-09 08:17:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-03-09 08:17:48 +0000 |
| commit | e1b8898cfb0392f534cc25808a7f6caad36ebbb7 (patch) | |
| tree | 52b15becdc2531921468fdabbe243479e61a523e /src/libstd | |
| parent | c9f8304351ad4223e4f618e9a329b2b94776b25e (diff) | |
| parent | daf80f721b0c9f3a57f13dd9d8934e851ad17dd5 (diff) | |
| download | rust-e1b8898cfb0392f534cc25808a7f6caad36ebbb7.tar.gz rust-e1b8898cfb0392f534cc25808a7f6caad36ebbb7.zip | |
Auto merge of #57882 - euclio:unused-doc-attributes, r=estebank
overhaul unused doc comments lint This PR contains a number of improvements to the `unused_doc_comments` lint. - Extends the span to cover the entire comment when using sugared doc comments. - Triggers the lint for all unused doc comments on a node, instead of just the first one. - Triggers the lint on macro expansions, and provides a help note explaining that doc comments must be expanded by the macro. - Adds a label pointing at the node that cannot be documented. Furthermore, this PR fixes any instances in rustc where a macro expansion was erroneously documented.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/stdio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<Option<Box<dyn Write + Send>>> = { 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<Option<Box<dyn Write + Send>>> = { RefCell::new(None) } |
