Skip to content

Commit 48c6953

Browse files
committed
Remove typestate workaround that's no longer necessary
1 parent 809a833 commit 48c6953

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
@@ -1119,11 +1119,8 @@ fn parse_prefix_expr(p: &parser) -> @ast::expr {
11191119
}
11201120
let lo = p.get_lo_pos();
11211121
let hi = p.get_hi_pos();
1122-
// FIXME: can only remove this sort of thing when both typestate and
1123-
// alt-exhaustive-match checking are co-operating.
11241122

1125-
let lit = @spanned(lo, lo, ast::lit_nil);
1126-
let ex: ast::expr_ = ast::expr_lit(lit);
1123+
let ex;
11271124
alt p.peek() {
11281125
token::NOT. {
11291126
p.bump();

0 commit comments

Comments
 (0)