Skip to content

Commit e3552da

Browse files
committed
No longer allow 'case' keyword before patterns
1 parent 6e2a7bf commit e3552da

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,11 +1336,7 @@ fn parse_alt_expr(p: &parser) -> @ast::expr {
13361336
// Optionally eat the case keyword.
13371337
// FIXME remove this (and the optional parens) once we've updated our
13381338
// code to not use the old syntax
1339-
eat_word(p, "case");
1340-
let parens = false;
1341-
if p.peek() == token::LPAREN { parens = true; p.bump(); }
13421339
let pats = parse_pats(p);
1343-
if parens { expect(p, token::RPAREN); }
13441340
let blk = parse_block(p);
13451341
arms += ~[{pats: pats, block: blk}];
13461342
}

0 commit comments

Comments
 (0)