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 | |
| parent | 93e8783496008b27347b4b68e60e938b34b3ea6a (diff) | |
| download | rust-a8dd52ed3649d2dba3474a80254d1cc5180797f3.tar.gz rust-a8dd52ed3649d2dba3474a80254d1cc5180797f3.zip | |
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')
| -rw-r--r-- | src/comp/syntax/ast.rs | 3 | ||||
| -rw-r--r-- | src/comp/syntax/fold.rs | 1 | ||||
| -rw-r--r-- | src/comp/syntax/parse/eval.rs | 1 | ||||
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 13 | ||||
| -rw-r--r-- | src/comp/syntax/visit.rs | 1 |
5 files changed, 0 insertions, 19 deletions
diff --git a/src/comp/syntax/ast.rs b/src/comp/syntax/ast.rs index 24bb3e8d68b..dfebf9135fd 100644 --- a/src/comp/syntax/ast.rs +++ b/src/comp/syntax/ast.rs @@ -62,7 +62,6 @@ tag crate_directive_ { cdir_dir_mod(ident, option::t<filename>, [@crate_directive], [attribute]); cdir_view_item(@view_item); cdir_syntax(path); - cdir_auth(path, _auth); } type crate_directive = spanned<crate_directive_>; @@ -101,8 +100,6 @@ tag mutability { mut; imm; maybe_mut; } tag kind { kind_sendable; kind_copyable; kind_noncopyable; } -tag _auth { auth_unsafe; } - tag proto_sugar { sugar_normal; sugar_sexy; diff --git a/src/comp/syntax/fold.rs b/src/comp/syntax/fold.rs index 0eab97481bc..956f9e538f0 100644 --- a/src/comp/syntax/fold.rs +++ b/src/comp/syntax/fold.rs @@ -168,7 +168,6 @@ fn noop_fold_crate_directive(cd: crate_directive_, fld: ast_fold) -> } cdir_view_item(vi) { cdir_view_item(fld.fold_view_item(vi)) } cdir_syntax(_) { cd } - cdir_auth(_, _) { cd } } } 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)); diff --git a/src/comp/syntax/visit.rs b/src/comp/syntax/visit.rs index 48f5bd1329f..7430c28b749 100644 --- a/src/comp/syntax/visit.rs +++ b/src/comp/syntax/visit.rs @@ -64,7 +64,6 @@ fn visit_crate_directive<E>(cd: @crate_directive, e: E, v: vt<E>) { } cdir_view_item(vi) { v.visit_view_item(vi, e, v); } cdir_syntax(_) { } - cdir_auth(_, _) { } } } |
