Fix walk bug that coupled with marijns work to regress stage1.

This commit is contained in:
Graydon Hoare 2011-04-20 22:52:33 +00:00
parent bc50a3ba44
commit c0d98cec45

View File

@ -373,10 +373,9 @@ fn walk_expr(&ast_visitor v, @ast.expr e) {
walk_expr(v, b);
}
case (ast.expr_path(_, _, _)) { }
case (ast.expr_ext(_, ?es, ?eo, ?x, _)) {
walk_exprs(v, es);
walk_expr_opt(v, eo);
walk_expr(v, x);
case (ast.expr_ext(_, ?args, ?body, ?expansion, _)) {
// Only walk expansion, not args/body.
walk_expr(v, expansion);
}
case (ast.expr_fail(_)) { }
case (ast.expr_break(_)) { }