-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix empty_enum_variants_with_brackets misses removing brackets in patterns
#16160
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
Conversation
|
rustbot has assigned @samueltardieu. Use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for tackling this:) Some small suggestions
|
Lintcheck changes for 9642358
This comment will be updated if you push new changes |
…rackets` misses removing brackets in patterns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lintcheck here shows that brackets may sometimes be used on purpose, for example when there is a comment. Could you please add a check that there is no non-whitespace (including comments) inside the brackets, and the corresponding tests (for example with a comment, and with a #[cfg]-d out field)? That would be an improvement.
|
Reminder, once the PR becomes ready for a review, use |
|
Added. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one last nit and we should be good to go.
Closes #16157
changelog: [
empty_enum_variants_with_brackets] fix missing to remove brackets in patterns