about summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-22 10:49:26 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-23 09:07:28 -0700
commit33573bc0aaec14c55adbe6be314f761f34f8cdd0 (patch)
tree2210dc1d34cb3cda9b618d275a063b27733e444d /src/libsyntax/parse/lexer.rs
parent0dd4c1e7bd0178ca91ea13dfad6efc4cce728302 (diff)
downloadrust-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.rs5
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; }
         }