mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-03-06 19:39:12 +00:00
Merge pull request #21725 from Veykril/push-skvpqzkooolm
fix: Fix wrong confiditon in `Visibility::min`
This commit is contained in:
commit
d5d00a364a
@ -234,7 +234,7 @@ impl Visibility {
|
||||
if mod_.krate(db) == krate { Some(Visibility::Module(mod_, exp)) } else { None }
|
||||
}
|
||||
(Visibility::Module(mod_a, expl_a), Visibility::Module(mod_b, expl_b)) => {
|
||||
if mod_a.krate(db) != mod_b.krate(db) {
|
||||
if mod_a == mod_b {
|
||||
// Most module visibilities are `pub(self)`, and assuming no errors
|
||||
// this will be the common and thus fast path.
|
||||
return Some(Visibility::Module(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user