about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-08-24 21:03:51 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-08-24 22:28:12 -0700
commit5e22fb9c7f94c76e1e7e17709884198ec4ba3fcb (patch)
tree3f8504b434daa0eea689faf3c09177ccd551d545 /src/libsyntax/parse/parser.rs
parentc7a3d0eb5820e63225b45a2e2c8c4e9b8f658601 (diff)
downloadrust-5e22fb9c7f94c76e1e7e17709884198ec4ba3fcb.tar.gz
rust-5e22fb9c7f94c76e1e7e17709884198ec4ba3fcb.zip
Remove match check
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index ff06c14c4fb..4656fc6b6fa 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -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 {