mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
rustc: Remove unused variable from check_assignment
This commit is contained in:
@@ -1424,9 +1424,8 @@ fn check_assignment(&@fn_ctxt fcx, &span sp, &@ast::expr lhs,
|
||||
&@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
|
||||
|
||||
Reference in New Issue
Block a user