diff options
| author | Patrick Walton <[email protected]> | 2011-03-31 19:12:40 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-31 19:12:40 -0700 |
| commit | c66edca83d04c5be5c27629b43c2c180a67f2d63 (patch) | |
| tree | 37db28b65567fd8c067c82d1917878181a69c0f5 /src/comp/front/parser.rs | |
| parent | rustc: Make tag_ty_params() and substitute_ty_params() take def ids instead o... (diff) | |
| download | rust-c66edca83d04c5be5c27629b43c2c180a67f2d63.tar.xz rust-c66edca83d04c5be5c27629b43c2c180a67f2d63.zip | |
rustc: Add a type annotation to tag items
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |