File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import std::option;
16
16
17
17
import rustc:: syntax:: ast;
18
18
import rustc:: syntax:: fold;
19
- import rustc:: syntax:: walk ;
19
+ import rustc:: syntax:: visit ;
20
20
import rustc:: syntax:: codemap;
21
21
import rustc:: syntax:: parse:: parser;
22
22
import rustc:: syntax:: print:: pprust;
@@ -102,10 +102,10 @@ fn steal_exprs(crate: &ast::crate) -> ast::expr[] {
102
102
* es += ~[ * e] ;
103
103
} else { /* now my indices are wrong :( */ }
104
104
}
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 ) ;
109
109
* exprs
110
110
}
111
111
You can’t perform that action at this time.
0 commit comments