]> git.lizzy.rs Git - rust.git/commitdiff
Remove typestate workaround that's no longer necessary
authorTim Chevalier <chevalier@alum.wellesley.edu>
Sat, 13 Aug 2011 01:26:23 +0000 (18:26 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Sat, 13 Aug 2011 01:26:23 +0000 (18:26 -0700)
src/comp/syntax/parse/parser.rs

index f930af5e2634615ff3086e5b334a0c525e270fab..dcd45864b1ad2a11eec0afc66c399ebc1c9eb5a7 100644 (file)
@@ -744,11 +744,8 @@ fn mk_mac_expr(p: &parser, lo: uint, hi: uint, m: &ast::mac_) -> @ast::expr {
 fn parse_bottom_expr(p: &parser) -> @ast::expr {
     let lo = p.get_lo_pos();
     let hi = p.get_hi_pos();
-    // FIXME: can only remove this sort of thing when both typestate and
-    // alt-exhaustive-match checking are co-operating.
 
-    let lit = @spanned(lo, hi, ast::lit_nil);
-    let ex: ast::expr_ = ast::expr_lit(lit);
+    let ex: ast::expr_;
     if p.peek() == token::LPAREN {
         p.bump();
         alt p.peek() {