aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/semantics.rs4
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};
11use hir_expand::ExpansionInfo; 11use hir_expand::ExpansionInfo;
12use hir_ty::associated_types; 12use hir_ty::associated_type_shorthand_candidates;
13use itertools::Itertools; 13use itertools::Itertools;
14use ra_db::{FileId, FileRange}; 14use ra_db::{FileId, FileRange};
15use ra_prof::profile; 15use 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 }