mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Rename to associated_type_shorthand_candidates
This commit is contained in:
parent
8c2670026a
commit
3cb73da949
3 changed files with 30 additions and 29 deletions
|
@ -9,7 +9,7 @@ use hir_def::{
|
|||
AsMacroCall, TraitId,
|
||||
};
|
||||
use hir_expand::ExpansionInfo;
|
||||
use hir_ty::associated_types;
|
||||
use hir_ty::associated_type_shorthand_candidates;
|
||||
use itertools::Itertools;
|
||||
use ra_db::{FileId, FileRange};
|
||||
use ra_prof::profile;
|
||||
|
@ -78,7 +78,7 @@ impl PathResolution {
|
|||
mut cb: impl FnMut(TypeAlias) -> Option<R>,
|
||||
) -> Option<R> {
|
||||
if let Some(res) = self.clone().in_type_ns() {
|
||||
associated_types(db, res, |_, _, id| cb(id.into()))
|
||||
associated_type_shorthand_candidates(db, res, |_, _, id| cb(id.into()))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue