From c66edca83d04c5be5c27629b43c2c180a67f2d63 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 31 Mar 2011 19:12:40 -0700 Subject: rustc: Add a type annotation to tag items --- src/comp/front/parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/comp/front/parser.rs') diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index e0324f77..f7d355a4 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -2071,7 +2071,8 @@ impure fn parse_item_tag(parser p) -> @ast.item { p.bump(); auto hi = p.get_span(); - auto item = ast.item_tag(id, variants, ty_params, p.next_def_id()); + auto item = ast.item_tag(id, variants, ty_params, p.next_def_id(), + ast.ann_none); ret @spanned(lo, hi, item); } -- cgit v1.2.3