aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-12-03 18:12:51 -0800
committerPatrick Walton <[email protected]>2010-12-03 18:13:15 -0800
commit2e119698b7354b6fd2b96dccfeea821bc538d8f1 (patch)
tree7a828b7929bde526d650d4c822b406fa75fa634a /src/comp/front/ast.rs
parentParse layer and effect annotations. (diff)
downloadrust-2e119698b7354b6fd2b96dccfeea821bc538d8f1.tar.xz
rust-2e119698b7354b6fd2b96dccfeea821bc538d8f1.zip
rustc: Add def ids to variant arguments so we can turn them into function arguments later
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index f4bfc7a2..e7695e0b 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -198,7 +198,8 @@ tag mod_index_entry {
type _mod = rec(vec[@item] items,
hashmap[ident,mod_index_entry] index);
-type variant = rec(str name, vec[@ty] args, def_id id, ann ann);
+type variant_arg = rec(@ty ty, def_id id);
+type variant = rec(str name, vec[variant_arg] args, def_id id, ann ann);
type item = spanned[item_];
tag item_ {