-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Extend manual_is_variant_and lint
to check for boolean map comparisons
#14646
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
base: master
Are you sure you want to change the base?
Extend manual_is_variant_and lint
to check for boolean map comparisons
#14646
Conversation
samueltardieu is on vacation. Please choose another assignee. |
0b94b9e
to
8913c0e
Compare
Fixed fmt |
expr: &'tcx Expr<'_>, | ||
map_recv: &'tcx Expr<'_>, | ||
map_arg: &'tcx Expr<'_>, |
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 think all those explicit 'tcx
lifetimes can be removed, as well as the function generic 'tcx
parameter.
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.
Ah indeed!
8913c0e
to
f65ce46
Compare
Fixes #14542.
changelog: Extend
manual_is_variant_and lint
to check for boolean map comparisonsr? @samueltardieu