summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-03-09 08:17:48 +0000
committerbors <bors@rust-lang.org>2019-03-09 08:17:48 +0000
commite1b8898cfb0392f534cc25808a7f6caad36ebbb7 (patch)
tree52b15becdc2531921468fdabbe243479e61a523e /src/libcore
parentc9f8304351ad4223e4f618e9a329b2b94776b25e (diff)
parentdaf80f721b0c9f3a57f13dd9d8934e851ad17dd5 (diff)
downloadrust-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/libcore')
-rw-r--r--src/libcore/num/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 502e3de8c63..98b5fcd3ee4 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -4515,7 +4515,7 @@ macro_rules! rev {
     )*}
 }
 
-/// intra-sign conversions
+// intra-sign conversions
 try_from_upper_bounded!(u16, u8);
 try_from_upper_bounded!(u32, u16, u8);
 try_from_upper_bounded!(u64, u32, u16, u8);