about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-08-12 18:26:23 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-08-12 18:26:23 -0700
commit1ba9af92bfc61e4a9a211558501f03c8e04a4da8 (patch)
tree79edf99bfa05bfa5a80c70222347a3c32ce29d73 /src/comp
parent8e92be3b94d4e2051bf132028ac3bcb6af4ad644 (diff)
downloadrust-1ba9af92bfc61e4a9a211558501f03c8e04a4da8.tar.gz
rust-1ba9af92bfc61e4a9a211558501f03c8e04a4da8.zip
Remove typestate workaround that's no longer necessary
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/syntax/parse/parser.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index f930af5e263..dcd45864b1a 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -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() {