diff options
| author | Patrick Walton <[email protected]> | 2010-11-12 16:11:33 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-11-12 16:11:33 -0800 |
| commit | e02ffb2c2d639eb813d9924ca1c3e9c6b7d0e534 (patch) | |
| tree | c76e39cf821c45d0493b3cbae5c0ff2f29add7ad /src/comp/front/parser.rs | |
| parent | Move phi-node generation into a helper that measures the liveness of each inc... (diff) | |
| download | rust-e02ffb2c2d639eb813d9924ca1c3e9c6b7d0e534.tar.xz rust-e02ffb2c2d639eb813d9924ca1c3e9c6b7d0e534.zip | |
rustc: Add a type annotation for locals
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 19c72a34..2382efc1 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -731,7 +731,8 @@ impure fn parse_let(parser p) -> @ast.decl { infer = false, ident = ident, init = init, - id = p.next_def_id()); + id = p.next_def_id(), + ann = ast.ann_none); ret @spanned(lo, hi, ast.decl_local(@local)); } @@ -750,7 +751,8 @@ impure fn parse_auto(parser p) -> @ast.decl { infer = true, ident = ident, init = init, - id = p.next_def_id()); + id = p.next_def_id(), + ann = ast.ann_none); ret @spanned(lo, hi, ast.decl_local(@local)); } |