Skip to content

fix: preserve attributes for fn params with empty idents#6590

Open
CPunisher wants to merge 4 commits into
rust-lang:mainfrom
CPunisher:06-28-fix/attr-for-variadic
Open

fix: preserve attributes for fn params with empty idents#6590
CPunisher wants to merge 4 commits into
rust-lang:mainfrom
CPunisher:06-28-fix/attr-for-variadic

Conversation

@CPunisher

@CPunisher CPunisher commented Jun 28, 2025

Copy link
Copy Markdown

fixes #6561
fixes #6607

just follow the suggestion and add some tests :)

@CPunisher CPunisher changed the title fix: preserve attributes for fn params with empty ident fix: preserve attributes for fn params with empty idents Jun 28, 2025
@ytmimi

ytmimi commented Jul 21, 2025

Copy link
Copy Markdown
Contributor

Thanks for working on this. Can you also add a test case for #6607. I believe this also fixes that issue

@CPunisher

Copy link
Copy Markdown
Author

@ytmimi I think this pr can be merged now

@av-gal

av-gal commented Nov 17, 2025

Copy link
Copy Markdown

This looks good to me.

@jieyouxu jieyouxu added S-waiting-on-review Status: awaiting review from the assignee but also interested parties. and removed pr-not-reviewed labels Feb 19, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustfmt removes attributes on parameters of fn types rustfmt eats attributes while formatting functions with variadic parameters

6 participants