From c3bc88a3251bc966eb128edbf4803e0a88cc06ff Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 10 Nov 2010 18:19:27 -0800 Subject: rustc: Add an annotation to function and type items so that the typechecker can store types with them --- src/comp/front/ast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/front/ast.rs') 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); } -- cgit v1.2.3