diff options
| author | Graydon Hoare <[email protected]> | 2011-02-14 16:33:51 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-02-14 16:33:51 -0800 |
| commit | 84dd64b6cf047444e03b94e63e00508ecc4046aa (patch) | |
| tree | 1b225bab1fb603bb951950ab3a291b657e5fac61 /src/comp | |
| parent | Add parse support for expr_ext. (diff) | |
| download | rust-84dd64b6cf047444e03b94e63e00508ecc4046aa.tar.xz rust-84dd64b6cf047444e03b94e63e00508ecc4046aa.zip | |
Switch ast.is_call_expr check in trans to non-typestate form.
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/middle/trans.rs | 2 |
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)); |