Revert "Implement pattern ranges for all numeric types."

This reverts commit ce0f054f9d.
This commit is contained in:
Marijn Haverbeke 2011-09-21 17:31:43 +02:00
parent 410f73fdb2
commit a034f87146
14 changed files with 25 additions and 451 deletions

View file

@ -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. {