diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-22 10:49:26 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-23 09:07:28 -0700 |
| commit | 33573bc0aaec14c55adbe6be314f761f34f8cdd0 (patch) | |
| tree | 2210dc1d34cb3cda9b618d275a063b27733e444d /src/libsyntax/parse/token.rs | |
| parent | 0dd4c1e7bd0178ca91ea13dfad6efc4cce728302 (diff) | |
| download | rust-33573bc0aaec14c55adbe6be314f761f34f8cdd0.tar.gz rust-33573bc0aaec14c55adbe6be314f761f34f8cdd0.zip | |
syntax: Clean out obsolete syntax parsing
All of these features have been obsolete since February 2014, where most have been obsolete since 2013. There shouldn't be any more need to keep around the parser hacks after this length of time.
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 70 |
1 files changed, 34 insertions, 36 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 8758f109042..17ce03ba213 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -67,7 +67,6 @@ pub enum Token { MOD_SEP, RARROW, LARROW, - DARROW, FAT_ARROW, LPAREN, RPAREN, @@ -183,7 +182,6 @@ pub fn to_str(t: &Token) -> StrBuf { MOD_SEP => "::".to_strbuf(), RARROW => "->".to_strbuf(), LARROW => "<-".to_strbuf(), - DARROW => "<->".to_strbuf(), FAT_ARROW => "=>".to_strbuf(), LPAREN => "(".to_strbuf(), RPAREN => ")".to_strbuf(), @@ -449,45 +447,45 @@ declare_special_idents_and_keywords! { 'strict: (9, As, "as"); (10, Break, "break"); - (11, Const, "const"); - (12, Crate, "crate"); - (13, Else, "else"); - (14, Enum, "enum"); - (15, Extern, "extern"); - (16, False, "false"); - (17, Fn, "fn"); - (18, For, "for"); - (19, If, "if"); - (20, Impl, "impl"); - (21, In, "in"); - (22, Let, "let"); - (23, Loop, "loop"); - (24, Match, "match"); - (25, Mod, "mod"); - (26, Mut, "mut"); - (27, Once, "once"); - (28, Pub, "pub"); - (29, Ref, "ref"); - (30, Return, "return"); + (11, Crate, "crate"); + (12, Else, "else"); + (13, Enum, "enum"); + (14, Extern, "extern"); + (15, False, "false"); + (16, Fn, "fn"); + (17, For, "for"); + (18, If, "if"); + (19, Impl, "impl"); + (20, In, "in"); + (21, Let, "let"); + (22, Loop, "loop"); + (23, Match, "match"); + (24, Mod, "mod"); + (25, Mut, "mut"); + (26, Once, "once"); + (27, Pub, "pub"); + (28, Ref, "ref"); + (29, Return, "return"); // Static and Self are also special idents (prefill de-dupes) (super::STATIC_KEYWORD_NAME, Static, "static"); (super::SELF_KEYWORD_NAME, Self, "self"); - (31, Struct, "struct"); - (32, Super, "super"); - (33, True, "true"); - (34, Trait, "trait"); - (35, Type, "type"); - (36, Unsafe, "unsafe"); - (37, Use, "use"); - (38, Virtual, "virtual"); - (39, While, "while"); - (40, Continue, "continue"); - (41, Proc, "proc"); - (42, Box, "box"); + (30, Struct, "struct"); + (31, Super, "super"); + (32, True, "true"); + (33, Trait, "trait"); + (34, Type, "type"); + (35, Unsafe, "unsafe"); + (36, Use, "use"); + (37, Virtual, "virtual"); + (38, While, "while"); + (39, Continue, "continue"); + (40, Proc, "proc"); + (41, Box, "box"); 'reserved: - (43, Alignof, "alignof"); - (44, Be, "be"); + (42, Alignof, "alignof"); + (43, Be, "be"); + (44, Const, "const"); (45, Offsetof, "offsetof"); (46, Priv, "priv"); (47, Pure, "pure"); |
