Skip to content

De-duplicate some code in librustdoc/html/render/print_item.rs - #163554

Closed
GuillaumeGomez wants to merge 1 commit into
rust-lang:mainfrom
GuillaumeGomez:cleanup-duplicated-code
Closed

GuillaumeGomez wants to merge 1 commit into
rust-lang:mainfrom
GuillaumeGomez:cleanup-duplicated-code

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

No point in having the same code in 3 different locations when we can have it in one.

r? @lolbinarycat

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Sep 30, 2026
@lolbinarycat

Copy link
Copy Markdown
Contributor

looks like a trivially correct refactor with no significant tradeoff, you can r=me once CI passes.

@fmease

fmease commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Lol, this is exactly what my PR also does #163254 (as a drive-by cleanup) which you also reviewed @ binarycat :P

@GuillaumeGomez

Copy link
Copy Markdown
Member Author

Want me to close this one? I saw it while working on #134868 ^^'

@lolbinarycat

Copy link
Copy Markdown
Contributor

I approved #163254, so I'm closing this.

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 1, 2026
@GuillaumeGomez
GuillaumeGomez deleted the cleanup-duplicated-code branch October 1, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants