rustdoc: Split effective visibilities from rustc from similar data built by rustdoc for external def-ids
This commit is contained in:
parent
3f21bdd994
commit
90f27f93bd
12 changed files with 68 additions and 41 deletions
|
@ -659,7 +659,7 @@ pub(crate) fn href_with_root_path(
|
|||
}
|
||||
|
||||
if !did.is_local()
|
||||
&& !cache.effective_visibilities.is_directly_public(did)
|
||||
&& !cache.effective_visibilities.is_directly_public(tcx, did)
|
||||
&& !cache.document_private
|
||||
&& !cache.primitive_locations.values().any(|&id| id == did)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue