Skip to content

rustdoc: Simplify modifications of effective visibility table#103010

Merged
bors merged 3 commits intorust-lang:masterfrom
petrochenkov:effvisdoc
Oct 30, 2022
Merged

rustdoc: Simplify modifications of effective visibility table#103010
bors merged 3 commits intorust-lang:masterfrom
petrochenkov:effvisdoc

Conversation

@petrochenkov
Copy link
Copy Markdown
Contributor

@petrochenkov petrochenkov commented Oct 13, 2022

It is now obvious that rustdoc only calls set_access_level with foreign def ids and AccessLevel::Public.

The second commit makes one more step and separates effective visibilities coming from rustc from similar data collected by rustdoc for extern DefIds.
The original table is no longer modified and now only contains local def ids as populated by rustc.

cc #102026 @Bryanskiy

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants