diff options
| author | Patrick Walton <[email protected]> | 2011-03-15 17:33:05 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-15 17:33:05 -0700 |
| commit | 71b6e602c54f78dc2f8f33de2d74b40879316165 (patch) | |
| tree | 87d92ce397c471e3046868b38a40ed67a69ca9f3 /src/comp/front/parser.rs | |
| parent | Revert "Change the numbering of upcall functions. upcall_0 now calls a functi... (diff) | |
| download | rust-71b6e602c54f78dc2f8f33de2d74b40879316165.tar.xz rust-71b6e602c54f78dc2f8f33de2d74b40879316165.zip | |
rustc: Add an annotation for the crate definition to view_item_use
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index df57bc19..a5c79926 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -2151,7 +2151,8 @@ impure fn parse_use(parser p) -> @ast.view_item { auto ident = parse_ident(p); auto metadata = parse_optional_meta(p); expect(p, token.SEMI); - auto use_decl = ast.view_item_use(ident, metadata, p.next_def_id()); + auto use_decl = ast.view_item_use(ident, metadata, p.next_def_id(), + ast.ann_none); ret @spanned(lo, hi, use_decl); } |