Permalink
Browse files

Remove typestate workaround that's no longer necessary

  • Loading branch information...
1 parent 8e92be3 commit 1ba9af92bfc61e4a9a211558501f03c8e04a4da8 @catamorphism catamorphism committed Aug 13, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/comp/syntax/parse/parser.rs
View
5 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() {

0 comments on commit 1ba9af9

Please sign in to comment.