diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-10-19 22:37:59 +0400 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-10-29 23:36:52 +0400 |
| commit | 90f27f93bdb9e3033faf87ad0b813d3faf077285 (patch) | |
| tree | 538df1ecd9ab5abc8a457c6d65d34839a73e6d9d /src/librustdoc/html/format.rs | |
| parent | 3f21bdd9941bb72c0ac83f033fa59674e555a1d8 (diff) | |
| download | rust-90f27f93bdb9e3033faf87ad0b813d3faf077285.tar.gz rust-90f27f93bdb9e3033faf87ad0b813d3faf077285.zip | |
rustdoc: Split effective visibilities from rustc from similar data built by rustdoc for external def-ids
Diffstat (limited to 'src/librustdoc/html/format.rs')
| -rw-r--r-- | src/librustdoc/html/format.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index 92e7f2739af..37202f786ed 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -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) { |
