-
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
Shorten html::render #82088
Shorten html::render #82088
Conversation
r? @ollie27 (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0862e34
to
206c443
Compare
989fadb
to
5273ca8
Compare
This comment has been minimized.
This comment has been minimized.
5273ca8
to
a899342
Compare
This comment has been minimized.
This comment has been minimized.
a899342
to
c27b09a
Compare
This comment has been minimized.
This comment has been minimized.
@GuillaumeGomez this bitrots quickly, it would be nice to review it soon if possible. |
c27b09a
to
aee0f7d
Compare
This comment has been minimized.
This comment has been minimized.
The warning is regarding a |
This comment has been minimized.
This comment has been minimized.
aee0f7d
to
849c690
Compare
This comment has been minimized.
This comment has been minimized.
849c690
to
5286284
Compare
This comment has been minimized.
This comment has been minimized.
5286284
to
75ea154
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #82756) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors delegate=Nicholas-Baron This bitrots pretty quickly, so feel free to approve it yourself once you've fixed the conflict. Please use |
✌️ @Nicholas-Baron can now approve this pull request |
Due to a rebase, some edits were needed in the mod file.
c34e695
to
afb8220
Compare
@bors: r=GuillaumeGomez |
📌 Commit afb8220 has been approved by |
… r=GuillaumeGomez Shorten html::render The `mod.rs` for librustdoc's `html::render` was over 3,000 lines. This PR reduces it to around 2,300 by 1. Moving `Context` and associated `impl`s to a separate file 2. Moving the `print_item` function and its helpers to a separate file 3. Moving `write_shared` and `write_minify` to their own file Related to issue rust-lang#60302. Edit 1: `SharedContext` and related `impl`s is only 72 lines and so will not be moved.
… r=GuillaumeGomez Shorten html::render The `mod.rs` for librustdoc's `html::render` was over 3,000 lines. This PR reduces it to around 2,300 by 1. Moving `Context` and associated `impl`s to a separate file 2. Moving the `print_item` function and its helpers to a separate file 3. Moving `write_shared` and `write_minify` to their own file Related to issue rust-lang#60302. Edit 1: `SharedContext` and related `impl`s is only 72 lines and so will not be moved.
…laumeGomez Rollup of 5 pull requests Successful merges: - rust-lang#76716 (Don't warn for `missing_doc_examples` when item is #[doc(hidden)]) - rust-lang#82088 (Shorten html::render) - rust-lang#82690 (Update rustdoc documentation) - rust-lang#82752 (Add a regression test for issue-81712) - rust-lang#82765 (Fix polymorphization ICE on associated types in trait decls using const generics in bounds) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
… r=GuillaumeGomez Shorten html::render The `mod.rs` for librustdoc's `html::render` was over 3,000 lines. This PR reduces it to around 2,300 by 1. Moving `Context` and associated `impl`s to a separate file 2. Moving the `print_item` function and its helpers to a separate file 3. Moving `write_shared` and `write_minify` to their own file Related to issue rust-lang#60302. Edit 1: `SharedContext` and related `impl`s is only 72 lines and so will not be moved.
The
mod.rs
for librustdoc'shtml::render
was over 3,000 lines. This PR reduces it to around 2,300 byContext
and associatedimpl
s to a separate fileprint_item
function and its helpers to a separate filewrite_shared
andwrite_minify
to their own fileRelated to issue #60302.
Edit 1:
SharedContext
and relatedimpl
s is only 72 lines and so will not be moved.