rustdoc: Resolve doc links on fields during early resolution#96447
Merged
bors merged 1 commit intorust-lang:masterfrom May 4, 2022
Merged
rustdoc: Resolve doc links on fields during early resolution#96447bors merged 1 commit intorust-lang:masterfrom
bors merged 1 commit intorust-lang:masterfrom
Conversation
Contributor
|
r? @jsha (rust-highfive has picked a reviewer for you, use r? to override) |
This was referenced Apr 26, 2022
Contributor
Author
|
ping @rust-lang/rustdoc |
GuillaumeGomez
approved these changes
May 3, 2022
Member
|
Don't hesitate to ping me directly if you don't have answers. Thanks for the fix! @bors: r+ |
Collaborator
|
📌 Commit 6d590ba has been approved by |
JohnTitor
added a commit
to JohnTitor/rust
that referenced
this pull request
May 3, 2022
rustdoc: Resolve doc links on fields during early resolution Another subset of rust-lang#94857 which fixes rust-lang#96429. This case regressed in rust-lang#96135 when `may_have_doc_links`-based filtering was introduced. Before that filtering structs could collect traits in scope for their fields, but after the filtering structs won't collect anything if they don't have doc comments on them, so we have to visit fields too.
Collaborator
Collaborator
|
☀️ Test successful - checks-actions |
Collaborator
|
Finished benchmarking commit (21d613b): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Another subset of #94857 which fixes #96429.
This case regressed in #96135 when
may_have_doc_links-based filtering was introduced.Before that filtering structs could collect traits in scope for their fields, but after the filtering structs won't collect anything if they don't have doc comments on them, so we have to visit fields too.