Fix warnings in librustc and libsyntax
This commit is contained in:
parent
be86bc81a7
commit
e20d46056d
2 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue