diff options
| author | Patrick Walton <[email protected]> | 2010-11-30 12:32:20 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-11-30 12:32:20 -0800 |
| commit | 567a45cc70424b77cac489940a36ff8a6ea97b84 (patch) | |
| tree | c7c5f0260ca59854fcf81265d612673f7716bdd9 /src/comp/front/parser.rs | |
| parent | Finish support for typechecking and translating records. Un-XFAIL rec.rs. (diff) | |
| download | rust-567a45cc70424b77cac489940a36ff8a6ea97b84.tar.xz rust-567a45cc70424b77cac489940a36ff8a6ea97b84.zip | |
rustc: Add def ids to variants
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 b23fa0aa..91124dc1 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -1260,7 +1260,8 @@ impure fn parse_item_tag(parser p) -> tup(ast.ident, @ast.item) { expect(p, token.SEMI); - variants += vec(rec(name=name, args=args)); + auto id = p.next_def_id(); + variants += vec(rec(name=name, args=args, id=id)); } case (token.RBRACE) { /* empty */ } case (_) { |