about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-09-21 17:31:43 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-09-21 18:42:09 +0200
commita034f87146e60e1db2327c6f6807c47406a1bb0b (patch)
treef0d8b144200a362611534c02bca9305eea4ce61b /src/comp/syntax/parse
parent410f73fdb23b189ea0b54dd5c025bbae5e58dee6 (diff)
downloadrust-a034f87146e60e1db2327c6f6807c47406a1bb0b.tar.gz
rust-a034f87146e60e1db2327c6f6807c47406a1bb0b.zip
Revert "Implement pattern ranges for all numeric types."
This reverts commit ce0f054f9d56df4e60291fc2e1b89ce979cf374f.
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index efed1380a23..6869dc6501d 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1494,14 +1494,8 @@ fn parse_pat(p: parser) -> @ast::pat {
       tok {
         if !is_ident(tok) || is_word(p, "true") || is_word(p, "false") {
             let lit = parse_lit(p);
-            if eat_word(p, "to") {
-                let end = parse_lit(p);
-                hi = end.span.hi;
-                pat = ast::pat_range(@lit, @end);
-            } else {
-                hi = lit.span.hi;
-                pat = ast::pat_lit(@lit);
-            }
+            hi = lit.span.hi;
+            pat = ast::pat_lit(@lit);
         } else if is_plain_ident(p) &&
                       alt p.look_ahead(1u) {
                         token::DOT. | token::LPAREN. | token::LBRACKET. {