Skip to content

Commit 06d706e

Browse files
committed
rustc: Remove the call to resolve_all_vars when typechecking field exprs
1 parent 3009574 commit 06d706e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/comp/middle/typeck.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,8 +2111,6 @@ fn check_expr(&@fn_ctxt fcx, &@ast::expr expr) {
21112111
check_expr(fcx, base);
21122112
auto base_t = expr_ty(fcx.ccx.tcx, base);
21132113
base_t = strip_boxes(fcx, expr.span, base_t);
2114-
base_t = ty::unify::resolve_all_vars(fcx.ccx.tcx,
2115-
fcx.var_bindings, base_t);
21162114
alt (structure_of(fcx, expr.span, base_t)) {
21172115
case (ty::ty_tup(?args)) {
21182116
let uint ix = ty::field_num(fcx.ccx.tcx.sess,

0 commit comments

Comments
 (0)