aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-25 11:10:50 -0700
committerPatrick Walton <[email protected]>2011-03-25 11:11:21 -0700
commite2d6475308481a43facb0e95e9535c5602bf54f2 (patch)
tree7953ea0a80b10457168af8a4e2411863bf6cc122 /src/comp/front/ast.rs
parentUpdate pretty printer for ports, channels, send and receive (diff)
downloadrust-e2d6475308481a43facb0e95e9535c5602bf54f2.tar.xz
rust-e2d6475308481a43facb0e95e9535c5602bf54f2.zip
rustc: Store cached crate metadata in the session
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index 0d70c993..70b3320d 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -21,7 +21,6 @@ type ty_param = rec(ident ident, def_id id);
// Annotations added during successive passes.
tag ann {
ann_none;
- ann_crate(@external_crate_info);
ann_type(@middle.ty.t, option.t[vec[@middle.ty.t]] /* ty param substs */);
}
@@ -359,7 +358,7 @@ type variant = rec(str name, vec[variant_arg] args, def_id id, ann ann);
type view_item = spanned[view_item_];
tag view_item_ {
- view_item_use(ident, vec[@meta_item], def_id, ann);
+ view_item_use(ident, vec[@meta_item], def_id, option.t[int]);
view_item_import(ident, vec[ident], def_id, option.t[def]);
view_item_export(ident);
}
@@ -382,8 +381,6 @@ tag native_item_ {
fn_decl, vec[ty_param], def_id, ann);
}
-type external_crate_info = rec(vec[u8] data);
-
fn index_view_item(mod_index index, @view_item it) {
alt (it.node) {
case(ast.view_item_use(?id, _, _, _)) {