Remove typestate workaround that's no longer necessary

This commit is contained in:
Tim Chevalier 2011-08-12 18:26:23 -07:00
parent 8e92be3b94
commit 1ba9af92bf

View 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 { fn parse_bottom_expr(p: &parser) -> @ast::expr {
let lo = p.get_lo_pos(); let lo = p.get_lo_pos();
let hi = p.get_hi_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_;
let ex: ast::expr_ = ast::expr_lit(lit);
if p.peek() == token::LPAREN { if p.peek() == token::LPAREN {
p.bump(); p.bump();
alt p.peek() { alt p.peek() {