From 84dd64b6cf047444e03b94e63e00508ecc4046aa Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 14 Feb 2011 16:33:51 -0800 Subject: [PATCH] Switch ast.is_call_expr check in trans to non-typestate form. --- src/comp/middle/trans.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 972683e9ce4..1bf278a7797 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -3215,7 +3215,7 @@ fn trans_ret(@block_ctxt cx, &option.t[@ast.expr] e) -> result { fn trans_be(@block_ctxt cx, @ast.expr e) -> result { // FIXME: This should be a typestate precondition - check ast.is_call_expr(e); + check (ast.is_call_expr(e)); // FIXME: Turn this into a real tail call once // calling convention issues are settled ret trans_ret(cx, some(e));