Change another typestate check to an expr check.

This commit is contained in:
Graydon Hoare 2011-02-15 12:30:09 -08:00
parent 9ae89bd404
commit 7a02798d1b

View File

@ -1348,7 +1348,7 @@ fn check_expr(&@fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
case (ast.expr_be(?e)) {
/* FIXME: prove instead of check */
check ast.is_call_expr(e);
check (ast.is_call_expr(e));
auto expr_0 = check_expr(fcx, e);
auto expr_1 = demand_expr(fcx, fcx.ret_ty, expr_0);
ret @fold.respan[ast.expr_](expr.span,