mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
internal: Remove unqualified_path completions module
This commit is contained in:
parent
16d2e79b50
commit
0c4e23b8ef
15 changed files with 769 additions and 732 deletions
|
@ -1370,10 +1370,10 @@ impl<'a> SemanticsScope<'a> {
|
|||
&self.resolver
|
||||
}
|
||||
|
||||
/// Note: `FxHashSet<TraitId>` should be treated as an opaque type, passed into `Type
|
||||
pub fn visible_traits(&self) -> FxHashSet<TraitId> {
|
||||
/// Note: `VisibleTraits` should be treated as an opaque type, passed into `Type
|
||||
pub fn visible_traits(&self) -> VisibleTraits {
|
||||
let resolver = &self.resolver;
|
||||
resolver.traits_in_scope(self.db.upcast())
|
||||
VisibleTraits(resolver.traits_in_scope(self.db.upcast()))
|
||||
}
|
||||
|
||||
pub fn process_all_names(&self, f: &mut dyn FnMut(Name, ScopeDef)) {
|
||||
|
@ -1424,3 +1424,5 @@ impl<'a> SemanticsScope<'a> {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct VisibleTraits(pub FxHashSet<TraitId>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue