diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-11-23 10:30:07 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-11-23 11:02:27 +0100 |
| commit | a8dd52ed3649d2dba3474a80254d1cc5180797f3 (patch) | |
| tree | 79d6f00b3bfffdf6f3524da71784780150de67f2 /src/comp/syntax/parse | |
| parent | 93e8783496008b27347b4b68e60e938b34b3ea6a (diff) | |
Remove last traces of auth keyword
The reference now has an empty hole where the auth keyword used to be. Changing the keyword table seems to require manually sorting the keywords and putting them back into some kind of arcane interleaved order. I'll open an issue to actually fix this. Closes #1211
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/eval.rs | 1 | ||||
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/comp/syntax/parse/eval.rs b/src/comp/syntax/parse/eval.rs index 7e1e93d5b70..2c1c0155cf0 100644 --- a/src/comp/syntax/parse/eval.rs +++ b/src/comp/syntax/parse/eval.rs @@ -133,7 +133,6 @@ fn eval_crate_directive(cx: ctx, cdir: @ast::crate_directive, prefix: str, } ast::cdir_view_item(vi) { view_items += [vi]; } ast::cdir_syntax(pth) { } - ast::cdir_auth(pth, eff) { } } } // diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 02d907aba8c..35c1e1190d3 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -2112,12 +2112,6 @@ fn parse_item_tag(p: parser, attrs: [ast::attribute]) -> @ast::item { ret mk_item(p, lo, hi, id, ast::item_tag(variants, ty_params), attrs); } -fn parse_auth(p: parser) -> ast::_auth { - if eat_word(p, "unsafe") { - ret ast::auth_unsafe; - } else { unexpected(p, p.peek()); } -} - fn parse_fn_item_proto(_p: parser) -> ast::proto { ast::proto_bare } @@ -2529,13 +2523,6 @@ fn parse_crate_directive(p: parser, first_outer_attr: [ast::attribute]) -> } t { unexpected(p, t); } } - } else if eat_word(p, "auth") { - let n = parse_path(p); - expect(p, token::EQ); - let a = parse_auth(p); - let hi = p.get_hi_pos(); - expect(p, token::SEMI); - ret spanned(lo, hi, ast::cdir_auth(n, a)); } else if is_view_item(p) { let vi = parse_view_item(p); ret spanned(lo, vi.span.hi, ast::cdir_view_item(vi)); |
