aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-11-12 16:11:33 -0800
committerPatrick Walton <[email protected]>2010-11-12 16:11:33 -0800
commite02ffb2c2d639eb813d9924ca1c3e9c6b7d0e534 (patch)
treec76e39cf821c45d0493b3cbae5c0ff2f29add7ad /src/comp/front/ast.rs
parentMove phi-node generation into a helper that measures the liveness of each inc... (diff)
downloadrust-e02ffb2c2d639eb813d9924ca1c3e9c6b7d0e534.tar.xz
rust-e02ffb2c2d639eb813d9924ca1c3e9c6b7d0e534.zip
rustc: Add a type annotation for locals
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index f70c6ac3..c3b38cb6 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -80,7 +80,8 @@ type local = rec(option.t[@ty] ty,
bool infer,
ident ident,
option.t[@expr] init,
- def_id id);
+ def_id id,
+ ann ann);
type decl = spanned[decl_];
tag decl_ {