Skip to content

Commit e20d460

Browse files
committed
Fix warnings in librustc and libsyntax
1 parent be86bc8 commit e20d460

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/librustc/middle/lint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ impl Context {
480480
(orig.visit_item)(it, (self, stopping));
481481
}
482482
NewVisitor(new_visitor) => {
483-
let mut new_visitor = new_visitor;
483+
let new_visitor = new_visitor;
484484
new_visitor.visit_item(it, ());
485485
}
486486
}
@@ -520,7 +520,7 @@ impl Context {
520520
let fk = visit::fk_method(m.ident,
521521
&m.generics,
522522
m);
523-
let mut new_visitor = new_visitor;
523+
let new_visitor = new_visitor;
524524
new_visitor.visit_fn(&fk,
525525
&m.decl,
526526
&m.body,

src/libsyntax/parse/attr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
use ast;
1212
use codemap::{spanned, mk_sp};
13-
use codemap::BytePos;
1413
use parse::common::*; //resolve bug?
1514
use parse::token;
1615
use parse::parser::Parser;

0 commit comments

Comments
 (0)