]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/method/suggest.rs
Rename resolve_type_vars_with_obligations to
[rust.git] / src / librustc_typeck / check / method / suggest.rs
index f2d001eadedde1cf9c543479a9795b38185d8b6d..d90ed2a790bb642fdecbcaaf1ac97e149e3bdfbb 100644 (file)
@@ -919,7 +919,7 @@ fn is_local(ty: Ty<'_>) -> bool {
         // This occurs for UFCS desugaring of `T::method`, where there is no
         // receiver expression for the method call, and thus no autoderef.
         if let SelfSource::QPath(_) = source {
-            return is_local(self.resolve_type_vars_with_obligations(rcvr_ty));
+            return is_local(self.resolve_vars_with_obligations(rcvr_ty));
         }
 
         self.autoderef(span, rcvr_ty).any(|(ty, _)| is_local(ty))