aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-04-14 15:28:50 -0700
committerPatrick Walton <[email protected]>2011-04-14 15:28:50 -0700
commit0387b5a060a1ca3484cfb130bc589f1470afa13a (patch)
tree18884e4e8c8ee5389dd319cd79fc7e5874f562de /src
parentrustc: Add a test case for previous commit (diff)
downloadrust-0387b5a060a1ca3484cfb130bc589f1470afa13a.tar.xz
rust-0387b5a060a1ca3484cfb130bc589f1470afa13a.zip
rustc: Use the unified result for the type of assignment expressions
Diffstat (limited to 'src')
-rw-r--r--src/comp/middle/typeck.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs
index 211fb349..62825dd0 100644
--- a/src/comp/middle/typeck.rs
+++ b/src/comp/middle/typeck.rs
@@ -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);
}