Remove match check

This commit is contained in:
Tim Chevalier
2012-08-24 21:03:51 -07:00
parent c7a3d0eb58
commit 5e22fb9c7f
13 changed files with 23 additions and 39 deletions

View File

@@ -1668,8 +1668,6 @@ struct parser {
fn parse_alt_expr() -> @expr {
let lo = self.last_span.lo;
let mode = if self.eat_keyword(~"check") { alt_check }
else { alt_exhaustive };
let discriminant = self.parse_expr();
self.expect(token::LBRACE);
let mut arms: ~[arm] = ~[];
@@ -1701,7 +1699,7 @@ struct parser {
}
let mut hi = self.span.hi;
self.bump();
return self.mk_expr(lo, hi, expr_match(discriminant, arms, mode));
return self.mk_expr(lo, hi, expr_match(discriminant, arms));
}
fn parse_expr() -> @expr {