Fix warnings in librustc and libsyntax
This commit is contained in:
parent
be86bc81a7
commit
e20d46056d
@ -480,7 +480,7 @@ impl Context {
|
||||
(orig.visit_item)(it, (self, stopping));
|
||||
}
|
||||
NewVisitor(new_visitor) => {
|
||||
let mut new_visitor = new_visitor;
|
||||
let new_visitor = new_visitor;
|
||||
new_visitor.visit_item(it, ());
|
||||
}
|
||||
}
|
||||
@ -520,7 +520,7 @@ impl Context {
|
||||
let fk = visit::fk_method(m.ident,
|
||||
&m.generics,
|
||||
m);
|
||||
let mut new_visitor = new_visitor;
|
||||
let new_visitor = new_visitor;
|
||||
new_visitor.visit_fn(&fk,
|
||||
&m.decl,
|
||||
&m.body,
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
use ast;
|
||||
use codemap::{spanned, mk_sp};
|
||||
use codemap::BytePos;
|
||||
use parse::common::*; //resolve bug?
|
||||
use parse::token;
|
||||
use parse::parser::Parser;
|
||||
|
Loading…
Reference in New Issue
Block a user