aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-11-10 18:19:27 -0800
committerPatrick Walton <[email protected]>2010-11-10 18:20:02 -0800
commitc3bc88a3251bc966eb128edbf4803e0a88cc06ff (patch)
tree174f0f7120b059ddec4de355e2e179a8c4aab152 /src/comp/front/ast.rs
parentRedo the scheme for block context chaining and termination, to simplify and s... (diff)
downloadrust-c3bc88a3251bc966eb128edbf4803e0a88cc06ff.tar.xz
rust-c3bc88a3251bc966eb128edbf4803e0a88cc06ff.zip
rustc: Add an annotation to function and type items so that the typechecker can store types with them
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index 830856e0..f70c6ac3 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -149,9 +149,9 @@ type _mod = rec(vec[@item] items,
type item = spanned[item_];
tag item_ {
- item_fn(ident, _fn, def_id);
+ item_fn(ident, _fn, def_id, ann);
item_mod(ident, _mod, def_id);
- item_ty(ident, @ty, def_id);
+ item_ty(ident, @ty, def_id, ann);
}