aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle/fold.rs
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-04-21 20:34:04 -0400
committerBrian Anderson <[email protected]>2011-04-21 20:42:26 -0400
commit540344acb9ebaa0141e991217c9fd9e2a5ec717a (patch)
tree04633c069092e6f36617db6a3f40e73212bc0b1c /src/comp/middle/fold.rs
parenttest: Un-XFAIL drop-parametric-closure-with-bound-box.rs, oops. (diff)
downloadrust-540344acb9ebaa0141e991217c9fd9e2a5ec717a.tar.xz
rust-540344acb9ebaa0141e991217c9fd9e2a5ec717a.zip
Fix the signature of expr_ext
The extension body is just a string, not an expression.
Diffstat (limited to 'src/comp/middle/fold.rs')
-rw-r--r--src/comp/middle/fold.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/middle/fold.rs b/src/comp/middle/fold.rs
index 25617640..a0f3bc93 100644
--- a/src/comp/middle/fold.rs
+++ b/src/comp/middle/fold.rs
@@ -173,7 +173,7 @@ type ast_fold[ENV] =
(fn(&ENV e, &span sp,
&path p, vec[@expr] args,
- option.t[@expr] body,
+ option.t[str] body,
@expr expanded,
ann a) -> @expr) fold_expr_ext,
@@ -1343,7 +1343,7 @@ fn identity_fold_expr_path[ENV](&ENV env, &span sp,
fn identity_fold_expr_ext[ENV](&ENV env, &span sp,
&path p, vec[@expr] args,
- option.t[@expr] body,
+ option.t[str] body,
@expr expanded,
ann a) -> @expr {
ret @respan(sp, ast.expr_ext(p, args, body, expanded, a));