-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: Resolve doc links on fields during early resolution #96447
Conversation
r? @jsha (rust-highfive has picked a reviewer for you, use r? to override) |
ping @rust-lang/rustdoc |
Don't hesitate to ping me directly if you don't have answers. Thanks for the fix! @bors: r+ |
📌 Commit 6d590ba has been approved by |
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.
☀️ Test successful - checks-actions |
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 |
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.