aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-02-14 16:33:51 -0800
committerGraydon Hoare <[email protected]>2011-02-14 16:33:51 -0800
commit84dd64b6cf047444e03b94e63e00508ecc4046aa (patch)
tree1b225bab1fb603bb951950ab3a291b657e5fac61 /src
parentAdd parse support for expr_ext. (diff)
downloadrust-84dd64b6cf047444e03b94e63e00508ecc4046aa.tar.xz
rust-84dd64b6cf047444e03b94e63e00508ecc4046aa.zip
Switch ast.is_call_expr check in trans to non-typestate form.
Diffstat (limited to 'src')
-rw-r--r--src/comp/middle/trans.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 972683e9..1bf278a7 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));