aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-20 22:52:33 +0000
committerGraydon Hoare <[email protected]>2011-04-20 22:52:33 +0000
commitc0d98cec458f22ee24f871c5b2e31ef934589655 (patch)
treee2f5d848007ee6e0b03fb920cffe873906848725
parentrustc: Add a type unification cache (diff)
downloadrust-c0d98cec458f22ee24f871c5b2e31ef934589655.tar.xz
rust-c0d98cec458f22ee24f871c5b2e31ef934589655.zip
Fix walk bug that coupled with marijns work to regress stage1.
-rw-r--r--src/comp/middle/walk.rs7
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(_)) { }