Fix warnings in librustc and libsyntax

This commit is contained in:
Erick Tryzelaar 2013-08-17 08:37:07 -07:00
parent be86bc81a7
commit e20d46056d
2 changed files with 2 additions and 3 deletions

View File

@ -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,

View File

@ -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;