Skip to content
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

Formatting attribute item with leading comma removes entire item #4162

Closed
ayazhafiz opened this issue May 9, 2020 · 1 comment
Closed

Formatting attribute item with leading comma removes entire item #4162

ayazhafiz opened this issue May 9, 2020 · 1 comment

Comments

@ayazhafiz
Copy link
Contributor

ayazhafiz commented May 9, 2020

Running rustfmt (at least since a5cb5d2) on a code like

#[derive(, Eq)]
struct A {}

results in

#[derive()]
struct A {}

Is this intentional?

@calebcartwright
Copy link
Member

Thanks for the report @ayazhafiz, but this is a duplicate of #4029/#3898. The issue has been fixed but not yet released (it will be in the next version of rustfmt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants