about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-08-24 16:45:22 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-08-25 18:48:34 -0700
commit48c695300192a4475889009b41b8f0ff6dc596bb (patch)
tree43feaac202278b5da0b969febce69111f345b24c /src/comp/syntax/parse
parent809a833e34176534886abf326cefaad4c6577099 (diff)
downloadrust-48c695300192a4475889009b41b8f0ff6dc596bb.tar.gz
rust-48c695300192a4475889009b41b8f0ff6dc596bb.zip
Remove typestate workaround that's no longer necessary
Diffstat (limited to 'src/comp/syntax/parse')
-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 729338b4b30..10b1b01b44f 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1119,11 +1119,8 @@ fn parse_prefix_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, lo, ast::lit_nil);
-    let ex: ast::expr_ = ast::expr_lit(lit);
+    let ex;
     alt p.peek() {
       token::NOT. {
         p.bump();