Skip to content

Cleanup around print_fn - #166563

Open
JonathanBrouwer wants to merge 4 commits into
rust-lang:mainfrom
JonathanBrouwer:param-cleanup
Open

JonathanBrouwer wants to merge 4 commits into
rust-lang:mainfrom
JonathanBrouwer:param-cleanup

Conversation

@JonathanBrouwer

@JonathanBrouwer JonathanBrouwer commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Part of #164357

Can be reviewed commit by commit, every commit passes tests

r? @Kivooeo

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 25, 2026
s: pp::Printer::new(),
comments: None,
attrs: &|_| &[],
body_params: &|_| &[],

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could regress pretty printing here, but this is only really reachable from item_to_string, which is removed in a later commit

@@ -2292,7 +2291,6 @@ impl<'a> State<'a> {
// Will take from one of these three for the param names
arg_idents: &[Option<Ident>],

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arg_idents will be removed in the next PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants