Skip to content

Commit bfb200d

Browse files
committed
Fix rebase
1 parent 98de9b7 commit bfb200d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/librustc_lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ impl UnusedDocComment {
831831

832832
let span = sugared_span.take().unwrap_or_else(|| attr.span);
833833

834-
if attr.name() == "doc" {
834+
if attr.check_name("doc") {
835835
let mut err = cx.struct_span_lint(UNUSED_DOC_COMMENTS, span, "unused doc comment");
836836

837837
err.span_label(

src/libsyntax/parse/attr.rs

-2
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,6 @@ impl<'a> Parser<'a> {
267267

268268
/// matches meta_item_inner : (meta_item | UNSUFFIXED_LIT) ;
269269
fn parse_meta_item_inner(&mut self) -> PResult<'a, ast::NestedMetaItem> {
270-
let lo = self.span;
271-
272270
match self.parse_unsuffixed_lit() {
273271
Ok(lit) => {
274272
return Ok(ast::NestedMetaItem::Literal(lit))

0 commit comments

Comments
 (0)