diff options
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/semantics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/semantics.rs b/crates/ra_hir/src/semantics.rs index 687f83f60..e6a7aaee0 100644 --- a/crates/ra_hir/src/semantics.rs +++ b/crates/ra_hir/src/semantics.rs | |||
@@ -9,7 +9,7 @@ use hir_def::{ | |||
9 | AsMacroCall, TraitId, | 9 | AsMacroCall, TraitId, |
10 | }; | 10 | }; |
11 | use hir_expand::ExpansionInfo; | 11 | use hir_expand::ExpansionInfo; |
12 | use hir_ty::associated_types; | 12 | use hir_ty::associated_type_shorthand_candidates; |
13 | use itertools::Itertools; | 13 | use itertools::Itertools; |
14 | use ra_db::{FileId, FileRange}; | 14 | use ra_db::{FileId, FileRange}; |
15 | use ra_prof::profile; | 15 | use ra_prof::profile; |
@@ -78,7 +78,7 @@ impl PathResolution { | |||
78 | mut cb: impl FnMut(TypeAlias) -> Option<R>, | 78 | mut cb: impl FnMut(TypeAlias) -> Option<R>, |
79 | ) -> Option<R> { | 79 | ) -> Option<R> { |
80 | if let Some(res) = self.clone().in_type_ns() { | 80 | if let Some(res) = self.clone().in_type_ns() { |
81 | associated_types(db, res, |_, _, id| cb(id.into())) | 81 | associated_type_shorthand_candidates(db, res, |_, _, id| cb(id.into())) |
82 | } else { | 82 | } else { |
83 | None | 83 | None |
84 | } | 84 | } |