Disowned the Visitor.

This commit is contained in:
Eduard Burtescu 2014-01-06 14:00:46 +02:00
parent 4e622becdc
commit 3119d18e55
57 changed files with 1039 additions and 1142 deletions

View file

@ -1128,7 +1128,7 @@ mod test {
impl Visitor<()> for NewPathExprFinderContext {
fn visit_expr(&mut self, expr: @ast::Expr, _: ()) {
fn visit_expr(&mut self, expr: &ast::Expr, _: ()) {
match *expr {
ast::Expr{id:_,span:_,node:ast::ExprPath(ref p)} => {
self.path_accumulator.push(p.clone());