Skip to content

Commit 94d971c

Browse files
committed
rustc: Remove unused variable from check_assignment
1 parent f50fd6d commit 94d971c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/comp/middle/typeck.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1424,9 +1424,8 @@ fn check_expr(&@fn_ctxt fcx, &@ast::expr expr) {
14241424
&@ast::expr rhs, &ast::ann a) {
14251425
check_expr(fcx, lhs);
14261426
check_expr(fcx, rhs);
1427-
auto typ =
1428-
demand::simple(fcx, sp, expr_ty(fcx.ccx.tcx, lhs),
1429-
expr_ty(fcx.ccx.tcx, rhs));
1427+
demand::simple(fcx, sp, expr_ty(fcx.ccx.tcx, lhs),
1428+
expr_ty(fcx.ccx.tcx, rhs));
14301429
write::ty_only_fixup(fcx, a.id, ty::mk_nil(fcx.ccx.tcx));
14311430
}
14321431
// A generic function for checking call expressions

0 commit comments

Comments
 (0)