rustc: Use the unified result for the type of assignment expressions

This commit is contained in:
Patrick Walton 2011-04-14 15:28:50 -07:00
parent 55ab187c9c
commit 0387b5a060

View file

@ -1696,7 +1696,7 @@ fn check_expr(&@fn_ctxt fcx, @ast.expr expr) -> @ast.expr {
auto lhs_1 = Pushdown.pushdown_expr(fcx, rhs_t0, lhs_0);
auto rhs_1 = Pushdown.pushdown_expr(fcx, expr_ty(lhs_1), rhs_0);
auto ann = triv_ann(rhs_t0);
auto ann = triv_ann(expr_ty(rhs_1));
ret tup(lhs_1, rhs_1, ann);
}