Fix walk bug that coupled with marijns work to regress stage1.
This commit is contained in:
parent
bc50a3ba44
commit
c0d98cec45
1 changed files with 3 additions and 4 deletions
|
|
@ -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(_)) { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue