mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
Fix walk bug that coupled with marijns work to regress stage1.
This commit is contained in:
parent
bc50a3ba44
commit
c0d98cec45
@ -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…
Reference in New Issue
Block a user