diff options
| author | Graydon Hoare <[email protected]> | 2011-04-20 22:52:33 +0000 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-04-20 22:52:33 +0000 |
| commit | c0d98cec458f22ee24f871c5b2e31ef934589655 (patch) | |
| tree | e2f5d848007ee6e0b03fb920cffe873906848725 | |
| parent | rustc: Add a type unification cache (diff) | |
| download | rust-c0d98cec458f22ee24f871c5b2e31ef934589655.tar.xz rust-c0d98cec458f22ee24f871c5b2e31ef934589655.zip | |
Fix walk bug that coupled with marijns work to regress stage1.
| -rw-r--r-- | src/comp/middle/walk.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comp/middle/walk.rs b/src/comp/middle/walk.rs index d9454b45..dbc188b1 100644 --- a/src/comp/middle/walk.rs +++ b/src/comp/middle/walk.rs @@ -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(_)) { } |