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/lexer.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/lexer.rs')
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index c78d2aaf3a7..317ba977c56 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -790,10 +790,7 @@ fn next_token_inner(rdr: &mut StringReader) -> token::Token { '<' => { return binop(rdr, token::SHL); } '-' => { bump(rdr); - match rdr.curr.unwrap_or('\x00') { - '>' => { bump(rdr); return token::DARROW; } - _ => { return token::LARROW; } - } + return token::LARROW; } _ => { return token::LT; } } |
