-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix manual_filter false positive #10091
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
do explicit checks for the other branch being None
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @llogiq (or someone else) soon. Please see the contribution instructions for more information. |
Hey, thanks for the fix! Could you add a test for #9766 as I believe your fix will fix this issue too |
The related issue is rust-lang#9766 where the `manual_filter` lint would remove side effects
Thanks @kraktus, I wasn't aware that there was a related issue. That's great that this fix also resolves the other issue! |
62cd8d9
to
3c14075
Compare
I hope that won't disturb the history, but I have faith in our bot. Thank you for working on this. @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
fixes #10088
fixes #9766
changelog: FP: [
manual_filter
]: Now ignores if expressions where the else branch has side effects or doesn't returnNone
#10091