Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_ty/src/method_resolution.rs')
| -rw-r--r-- | crates/hir_ty/src/method_resolution.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_ty/src/method_resolution.rs b/crates/hir_ty/src/method_resolution.rs index 3d233b1e20..0bd1d30bbf 100644 --- a/crates/hir_ty/src/method_resolution.rs +++ b/crates/hir_ty/src/method_resolution.rs @@ -410,7 +410,7 @@ pub enum LookupMode { // This would be nicer if it just returned an iterator, but that runs into // lifetime problems, because we need to borrow temp `CrateImplDefs`. // FIXME add a context type here? -pub fn iterate_method_candidates<T>( +pub fn iterate_method_candidates<T>( ty: &Canonical<Ty>, db: &dyn HirDatabase, env: Arc<TraitEnvironment>, @@ -422,7 +422,7 @@ pub fn iterate_method_candidates<T>( mut callback: impl FnMut(&Ty, AssocItemId) -> Option<T>, ) -> Option<T> { let mut slot = None; - iterate_method_candidates_impl( + iterate_method_candidates_dyn( ty, db, env, @@ -440,7 +440,7 @@ pub fn iterate_method_candidates<T>( slot } -fn iterate_method_candidates_impl( +pub fn iterate_method_candidates_dyn( ty: &Canonical<Ty>, db: &dyn HirDatabase, env: Arc<TraitEnvironment>, |