mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
Optimize pub(crate) visibility resolution
This commit is contained in:
parent
4b38ea5abd
commit
e129cdc202
12 changed files with 55 additions and 36 deletions
|
|
@ -164,6 +164,7 @@ impl<'a> SymbolCollector<'a> {
|
|||
|
||||
let is_explicit_import = |vis| match vis {
|
||||
Visibility::Public => true,
|
||||
Visibility::PubCrate(_) => true,
|
||||
Visibility::Module(_, VisibilityExplicitness::Explicit) => true,
|
||||
Visibility::Module(_, VisibilityExplicitness::Implicit) => false,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue