-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Missing unnecessary parentheses warning in constant expressions #67942
Comments
implemented check_item for UnusedParens to check the Const item's Expr field. |
@rustbot claim |
I've encountered an issue I'm not quite sure how to handle :( After getting what looks like a correct solution up with: https://github.com/mental32/rust/commit/438ade9ae57f3b5d1abb92a05cfc52a7f18eb046 I am met with the following after starting to build stage-1:
Should I open a separate Issue & PR to deal with any errors generated by unused parens or is it within the scope of this issue (and PR coming soon once I write the UI tests) to deal with them? |
@mental32 should be fixed within this issue, and don' forget to add a testcase named |
I resolved the issue with the submodule, is it alright if I claim this? It's a small patch to land. @rustbot claim |
It doesn't give a warning for the unnecessary parentheses for N1:
This issue has been assigned to @Tyg13 via this comment.
The text was updated successfully, but these errors were encountered: