Skip to content

Commit 1ba9af9

Browse files
committed
Remove typestate workaround that's no longer necessary
1 parent 8e92be3 commit 1ba9af9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -744,11 +744,8 @@ fn mk_mac_expr(p: &parser, lo: uint, hi: uint, m: &ast::mac_) -> @ast::expr {
744744
fn parse_bottom_expr(p: &parser) -> @ast::expr {
745745
let lo = p.get_lo_pos();
746746
let hi = p.get_hi_pos();
747-
// FIXME: can only remove this sort of thing when both typestate and
748-
// alt-exhaustive-match checking are co-operating.
749747

750-
let lit = @spanned(lo, hi, ast::lit_nil);
751-
let ex: ast::expr_ = ast::expr_lit(lit);
748+
let ex: ast::expr_;
752749
if p.peek() == token::LPAREN {
753750
p.bump();
754751
alt p.peek() {

0 commit comments

Comments
 (0)