Skip to content

Commit 84dd64b

Browse files
committed
Switch ast.is_call_expr check in trans to non-typestate form.
1 parent 890d027 commit 84dd64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3215,7 +3215,7 @@ fn trans_ret(@block_ctxt cx, &option.t[@ast.expr] e) -> result {
32153215

32163216
fn trans_be(@block_ctxt cx, @ast.expr e) -> result {
32173217
// FIXME: This should be a typestate precondition
3218-
check ast.is_call_expr(e);
3218+
check (ast.is_call_expr(e));
32193219
// FIXME: Turn this into a real tail call once
32203220
// calling convention issues are settled
32213221
ret trans_ret(cx, some(e));

0 commit comments

Comments
 (0)