about summary refs log tree commit diff
path: root/src/comp/front
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2010-11-03 16:43:12 -0700
committerPatrick Walton <pcwalton@mimiga.net>2010-11-19 17:50:45 -0800
commitc00bda539d79e4411e086d505c697662942ee00b (patch)
treeac121a5bf1275b57770add6e443434fa13eb6915 /src/comp/front
parentc410d685294e73a944f3e7cfe403f415a0cff849 (diff)
rustc: First stab at a typechecker
Diffstat (limited to 'src/comp/front')
-rw-r--r--src/comp/front/ast.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index c3b38cb6a15..3a67d2f273c 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -1,6 +1,7 @@
 
 import std.map.hashmap;
 import std.option;
+import middle.typeck;
 import util.common.span;
 import util.common.spanned;
 
@@ -17,7 +18,7 @@ type def_id = tup(crate_num, def_num);
 // Annotations added during successive passes.
 tag ann {
     ann_none;
-    ann_type(@ty);
+    ann_type(@typeck.ty);
 }
 
 tag def {
@@ -119,6 +120,8 @@ tag lit_ {
     lit_bool(bool);
 }
 
+// NB: If you change this, you'll probably want to change the corresponding
+// type structure in middle/typeck.rs as well.
 type ty = spanned[ty_];
 tag ty_ {
     ty_nil;