diff options
Diffstat (limited to 'crates/ra_hir/src/source_binder.rs')
-rw-r--r-- | crates/ra_hir/src/source_binder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index 7c4ebd4b4..9f3e6c43f 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs | |||
@@ -389,14 +389,14 @@ impl SourceAnalyzer { | |||
389 | pub fn iterate_path_candidates<T>( | 389 | pub fn iterate_path_candidates<T>( |
390 | &self, | 390 | &self, |
391 | db: &impl HirDatabase, | 391 | db: &impl HirDatabase, |
392 | ty: Ty, | 392 | ty: &Type, |
393 | name: Option<&Name>, | 393 | name: Option<&Name>, |
394 | callback: impl FnMut(&Ty, AssocItem) -> Option<T>, | 394 | callback: impl FnMut(&Ty, AssocItem) -> Option<T>, |
395 | ) -> Option<T> { | 395 | ) -> Option<T> { |
396 | // There should be no inference vars in types passed here | 396 | // There should be no inference vars in types passed here |
397 | // FIXME check that? | 397 | // FIXME check that? |
398 | // FIXME replace Unknown by bound vars here | 398 | // FIXME replace Unknown by bound vars here |
399 | let canonical = crate::ty::Canonical { value: ty, num_vars: 0 }; | 399 | let canonical = crate::ty::Canonical { value: ty.ty.value.clone(), num_vars: 0 }; |
400 | method_resolution::iterate_method_candidates( | 400 | method_resolution::iterate_method_candidates( |
401 | &canonical, | 401 | &canonical, |
402 | db, | 402 | db, |