]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_ty/src/infer/unify.rs
Record method call substs and use them in call info
[rust.git] / crates / hir_ty / src / infer / unify.rs
index f8233cac393985af6f838ee35466e8befe52de2b..ea5684229f0840e68312ed7ed9bb20a01afc92e5 100644 (file)
@@ -295,8 +295,11 @@ fn resolve_with_fallback_inner<T>(
         .expect("fold failed unexpectedly")
     }
 
-    pub(crate) fn resolve_ty_completely(&mut self, ty: Ty) -> Ty {
-        self.resolve_with_fallback(ty, |_, _, d, _| d)
+    pub(crate) fn resolve_completely<T>(&mut self, t: T) -> T::Result
+    where
+        T: HasInterner<Interner = Interner> + Fold<Interner>,
+    {
+        self.resolve_with_fallback(t, |_, _, d, _| d)
     }
 
     /// Unify two types and register new trait goals that arise from that.