Skip to content

Commit

Permalink
fix apparent typo in resolving variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Aug 23, 2021
1 parent e891044 commit af15e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/check/expr.rs
Expand Up @@ -1039,7 +1039,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
let t_cast = self.to_ty_saving_user_provided_ty(t);
let t_cast = self.resolve_vars_if_possible(t_cast);
let t_expr = self.check_expr_with_expectation(e, ExpectCastableToType(t_cast));
let t_cast = self.resolve_vars_if_possible(t_cast);
let t_expr = self.resolve_vars_if_possible(t_expr);

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

0 comments on commit af15e52

Please sign in to comment.