Skip to content

Commit c7ef6d2

Browse files
committed
Stop using walk.rs in the fuzzer
1 parent 2971cfb commit c7ef6d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/fuzzer/fuzzer.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import std::option;
1616

1717
import rustc::syntax::ast;
1818
import rustc::syntax::fold;
19-
import rustc::syntax::walk;
19+
import rustc::syntax::visit;
2020
import rustc::syntax::codemap;
2121
import rustc::syntax::parse::parser;
2222
import rustc::syntax::print::pprust;
@@ -102,10 +102,10 @@ fn steal_exprs(crate: &ast::crate) -> ast::expr[] {
102102
*es += ~[*e];
103103
} else {/* now my indices are wrong :( */ }
104104
}
105-
let v =
106-
{visit_expr_pre: bind stash_expr(exprs, _)
107-
with walk::default_visitor()};
108-
walk::walk_crate(v, crate);
105+
let v = visit::mk_simple_visitor
106+
(@{visit_expr: bind stash_expr(exprs, _)
107+
with *visit::default_simple_visitor()});
108+
visit::visit_crate(crate, (), v);
109109
*exprs
110110
}
111111

0 commit comments

Comments
 (0)