aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp/middle')
-rw-r--r--src/comp/middle/fold.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/comp/middle/fold.rs b/src/comp/middle/fold.rs
index a74ac3b3..543a05e1 100644
--- a/src/comp/middle/fold.rs
+++ b/src/comp/middle/fold.rs
@@ -85,8 +85,8 @@ type ast_fold[ENV] =
// Decl folds.
(fn(&ENV e, &span sp,
- ident ident, bool infer,
- &option[@ty] ty) -> @decl) fold_decl_local,
+ ident ident, &option[@ty] ty,
+ &option[@expr]) -> @decl) fold_decl_local,
(fn(&ENV e, &span sp,
&name name, @item item) -> @decl) fold_decl_item,
@@ -483,9 +483,9 @@ fn identity_fold_expr_block[ENV](&ENV env, &span sp, block blk) -> @expr {
// Decl identities.
fn identity_fold_decl_local[ENV](&ENV e, &span sp,
- ident i, bool infer,
- &option[@ty] t) -> @decl {
- ret @respan(sp, ast.decl_local(i, infer, t));
+ ident i, &option[@ty] t,
+ &option[@expr] init) -> @decl {
+ ret @respan(sp, ast.decl_local(i, t, init));
}
fn identity_fold_decl_item[ENV](&ENV e, &span sp,