rustc: Remove unused variable from check_assignment
This commit is contained in:
parent
f50fd6d8ae
commit
94d971c0e8
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue