Skip to content

rustdoc: Pre-calculate traits that are in scope for doc links#88679

Merged
bors merged 1 commit intorust-lang:masterfrom
petrochenkov:doctrscope
Jan 26, 2022
Merged

rustdoc: Pre-calculate traits that are in scope for doc links#88679
bors merged 1 commit intorust-lang:masterfrom
petrochenkov:doctrscope

Conversation

@petrochenkov
Copy link
Contributor

@petrochenkov petrochenkov commented Sep 5, 2021

This eliminates one more late use of resolver (part of #83761).
At early doc link resolution time we go through parent modules of items from the current crate, reexports of items from other crates, trait items, and impl items collected by collect-intra-doc-links pass, determine traits that are in scope in each such module, and put those traits into a map used by later rustdoc passes.
r? @jyn514

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

Labels

A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name A-resolve Area: Name/path resolution done by `rustc_resolve` specifically merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. 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.