We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98de9b7 commit bfb200dCopy full SHA for bfb200d
src/librustc_lint/builtin.rs
@@ -831,7 +831,7 @@ impl UnusedDocComment {
831
832
let span = sugared_span.take().unwrap_or_else(|| attr.span);
833
834
- if attr.name() == "doc" {
+ if attr.check_name("doc") {
835
let mut err = cx.struct_span_lint(UNUSED_DOC_COMMENTS, span, "unused doc comment");
836
837
err.span_label(
src/libsyntax/parse/attr.rs
@@ -267,8 +267,6 @@ impl<'a> Parser<'a> {
267
268
/// matches meta_item_inner : (meta_item | UNSUFFIXED_LIT) ;
269
fn parse_meta_item_inner(&mut self) -> PResult<'a, ast::NestedMetaItem> {
270
- let lo = self.span;
271
-
272
match self.parse_unsuffixed_lit() {
273
Ok(lit) => {
274
return Ok(ast::NestedMetaItem::Literal(lit))
0 commit comments