aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-11-24 18:01:20 -0800
committerPatrick Walton <[email protected]>2010-11-24 18:01:20 -0800
commit78ec07790a90813cf4f42df0246ea9c27892745f (patch)
tree65133255d56aab5c582942aefb9d4ed5293bdb17 /src/comp/front/ast.rs
parentrustc: Parse type-parametric typedefs (diff)
downloadrust-78ec07790a90813cf4f42df0246ea9c27892745f.tar.xz
rust-78ec07790a90813cf4f42df0246ea9c27892745f.zip
rustc: Assign definition IDs to type params
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 7da857b4..3c2af3c8 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -7,7 +7,6 @@ import util.common.spanned;
import util.common.ty_mach;
type ident = str;
-type ty_param = ident;
type name_ = rec(ident ident, vec[@ty] types);
type name = spanned[name_];
@@ -17,6 +16,8 @@ type crate_num = int;
type def_num = int;
type def_id = tup(crate_num, def_num);
+type ty_param = rec(ident ident, def_id id);
+
// Annotations added during successive passes.
tag ann {
ann_none;