-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
Add a new lint unneeded_where_clauses
, suggests removing empty where clauses
#125277
Conversation
r? @wesleywiser rustbot has assigned @wesleywiser. Use |
Would this be better placed in rustfmt? |
The job Click to see the possible cause of the failure (guessed by this bot)
|
In fact, I find rustfmt has covered this, it will remove the |
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.
I don't believe this should be made a lint in rustc, at least not first. Perhaps move this to clippy? Or yeah, as @cjgillot said, it may be better just as a formatting option.
I agree, and rustfmt has covered this. We can get |
Fixes #125242