aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-15 17:33:05 -0700
committerPatrick Walton <[email protected]>2011-03-15 17:33:05 -0700
commit71b6e602c54f78dc2f8f33de2d74b40879316165 (patch)
tree87d92ce397c471e3046868b38a40ed67a69ca9f3 /src/comp/front/ast.rs
parentRevert "Change the numbering of upcall functions. upcall_0 now calls a functi... (diff)
downloadrust-71b6e602c54f78dc2f8f33de2d74b40879316165.tar.xz
rust-71b6e602c54f78dc2f8f33de2d74b40879316165.zip
rustc: Add an annotation for the crate definition to view_item_use
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index 3de72406..1970f788 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -349,7 +349,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);
+ view_item_use(ident, vec[@meta_item], def_id, ann);
view_item_import(ident, vec[ident], def_id, option.t[def]);
view_item_export(ident);
}
@@ -376,7 +376,7 @@ type external_crate_info = ();
fn index_view_item(mod_index index, @view_item it) {
alt (it.node) {
- case(ast.view_item_use(?id, _, _)) {
+ case(ast.view_item_use(?id, _, _, _)) {
index.insert(id, ast.mie_view_item(it));
}
case(ast.view_item_import(?def_ident,_,_,_)) {