Skip to content

Commit af15e52

Browse files
committed
fix apparent typo in resolving variables
1 parent e891044 commit af15e52

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_typeck/src/check

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/check/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
10391039
let t_cast = self.to_ty_saving_user_provided_ty(t);
10401040
let t_cast = self.resolve_vars_if_possible(t_cast);
10411041
let t_expr = self.check_expr_with_expectation(e, ExpectCastableToType(t_cast));
1042-
let t_cast = self.resolve_vars_if_possible(t_cast);
1042+
let t_expr = self.resolve_vars_if_possible(t_expr);
10431043

10441044
// Eagerly check for some obvious errors.
10451045
if t_expr.references_error() || t_cast.references_error() {

0 commit comments

Comments
 (0)