rustc: Remove unused variable from check_assignment

This commit is contained in:
Brian Anderson 2011-06-15 16:48:59 -07:00
parent f50fd6d8ae
commit 94d971c0e8

View File

@ -1424,9 +1424,8 @@ fn check_expr(&@fn_ctxt fcx, &@ast::expr expr) {
&@ast::expr rhs, &ast::ann a) {
check_expr(fcx, lhs);
check_expr(fcx, rhs);
auto typ =
demand::simple(fcx, sp, expr_ty(fcx.ccx.tcx, lhs),
expr_ty(fcx.ccx.tcx, rhs));
demand::simple(fcx, sp, expr_ty(fcx.ccx.tcx, lhs),
expr_ty(fcx.ccx.tcx, rhs));
write::ty_only_fixup(fcx, a.id, ty::mk_nil(fcx.ccx.tcx));
}
// A generic function for checking call expressions