diff options
| author | Patrick Walton <[email protected]> | 2010-10-11 18:13:14 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-10-11 18:13:14 -0700 |
| commit | 8a7a0308e32711dce241142dac6c97ccd3a74807 (patch) | |
| tree | 280e15252440c0401d2198b19743d501c88e27d8 /src/comp/middle | |
| parent | rustc: Say "expected expression" instead of "expected literal" when we expect... (diff) | |
| download | rust-8a7a0308e32711dce241142dac6c97ccd3a74807.tar.xz rust-8a7a0308e32711dce241142dac6c97ccd3a74807.zip | |
rustc: Parse lets
Diffstat (limited to 'src/comp/middle')
| -rw-r--r-- | src/comp/middle/fold.rs | 10 |
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, |