-
Notifications
You must be signed in to change notification settings - Fork 14k
rustdoc: Don't pass RenderOptions to DocContext
#147832
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
base: main
Are you sure you want to change the base?
Conversation
|
r? @notriddle rustbot has assigned @notriddle. Use |
src/librustdoc/core.rs
Outdated
|
|
||
| // Remnence of processing crate attributes for passes to run. | ||
| // To be removed in https://github.com/rust-lang/rust/pull/146495. | ||
| if clean::hir_attr_lists(tcx.get_all_attrs(rustc_hir::def_id::CRATE_DEF_ID), sym::doc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me. Ideally my PR would've come first but alas. The source code comment is a bit too assertive, after all the pFCP-merge might not go through.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
(just double-checking) @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rustdoc: Don't pass `RenderOptions` to `DocContext`
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (64dd2c7): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (secondary -4.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -2.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 473.872s -> 476.054s (0.46%) |
abb2d75 to
937ecd5
Compare
|
Blocked on #146495 getting merged. |
937ecd5 to
3a7fca7
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
`RenderOptions` is full of HTML specific fields. The only ones that `DocContext` needs are `document_private` and `document_hidden`, which are accessable via `Cache` anyway. Part of a larger campeign against `RenderOptions`: https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/Using.20.60RenderOptions.60.20in.20less.20places.2E/with/545705812
3a7fca7 to
6f1cecf
Compare
|
Rebased. @bors r=GuillaumeGomez |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
RenderOptionsis full of HTML specific fields. The only ones thatDocContextneeds aredocument_privateanddocument_hidden, which are accessable viaCacheanyway.Part of a larger campeign against
RenderOption:https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/Using.20.60RenderOptions.60.20in.20less.20places.2E/with/545705812