diff options
| author | Patrick Walton <[email protected]> | 2010-12-21 12:13:51 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-12-21 16:24:17 -0800 |
| commit | 744b164b7dafbecd84e6f11e139ca054c283e77c (patch) | |
| tree | 1a0196d4fa25f51facd76c9189bf583f43c9bbe3 /src/comp/front | |
| parent | rustboot: Only bottom out at opaque IL types after finding two cycles. DON'T ... (diff) | |
| download | rust-744b164b7dafbecd84e6f11e139ca054c283e77c.tar.xz rust-744b164b7dafbecd84e6f11e139ca054c283e77c.zip | |
rustc: Move type logic out of typeck so trans doesn't look like it's calling into typeck
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/ast.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index 8f1a9638..8159962d 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -1,7 +1,6 @@ import std.map.hashmap; import std.option; -import middle.typeck; import util.common.span; import util.common.spanned; import util.common.ty_mach; @@ -21,7 +20,7 @@ type ty_param = rec(ident ident, def_id id); // Annotations added during successive passes. tag ann { ann_none; - ann_type(@typeck.ty); + ann_type(@middle.ty.t); } tag def { @@ -168,7 +167,7 @@ tag lit_ { } // NB: If you change this, you'll probably want to change the corresponding -// type structure in middle/typeck.rs as well. +// type structure in middle/ty.rs as well. type ty_field = rec(ident ident, @ty ty); type ty_arg = rec(mode mode, @ty ty); |