]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/demand.rs
Rename resolve_type_vars_with_obligations to
[rust.git] / src / librustc_typeck / check / demand.rs
index 677e2ea3566281fa0800b1c9bacd6e9ef04d980f..3509d6566ec93860315bea31234230f9a6df90f3 100644 (file)
@@ -108,7 +108,7 @@ pub fn demand_coerce_diag(&self,
                               expected: Ty<'tcx>,
                               allow_two_phase: AllowTwoPhase)
                               -> (Ty<'tcx>, Option<DiagnosticBuilder<'tcx>>) {
-        let expected = self.resolve_type_vars_with_obligations(expected);
+        let expected = self.resolve_vars_with_obligations(expected);
 
         let e = match self.try_coerce(expr, checked_ty, expected, allow_two_phase) {
             Ok(ty) => return (ty, None),
@@ -117,7 +117,7 @@ pub fn demand_coerce_diag(&self,
 
         let expr = expr.peel_drop_temps();
         let cause = self.misc(expr.span);
-        let expr_ty = self.resolve_type_vars_with_obligations(checked_ty);
+        let expr_ty = self.resolve_vars_with_obligations(checked_ty);
         let mut err = self.report_mismatched_types(&cause, expected, expr_ty, e);
 
         if self.is_assign_to_bool(expr, expected) {