-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
false positive on while_immutable_condition #4648
Comments
I don't see the FP. As long as |
There are two termination conditions in the loop, so it is not always an infinite loop. |
I would like to use |
Ah I see. I think the lint triggering here is correct. We should at least reword the lint to |
Yep, |
Can I claim this issue? |
Yeah sure, if you have any questions just ask here or open a WIP PR. |
…p1995 Fix check_infinite_loop (while_immutable_condition) by checking for break or return inside loop body changelog: Fix check_infinite_loop (while_immutable_condition) by checking for break or return inside loop body fixes rust-lang#4648
Fix check_infinite_loop (while_immutable_condition) by checking for break or return inside loop body changelog: Fix check_infinite_loop (while_immutable_condition) by checking for break or return inside loop body fixes #4648
Code:
Error:
https://github.com/kpp/futures-async-combinators/blob/d8da69c9f3b4587a99ddf1e0e5545bcff81cf57c/src/stream.rs#L718
The text was updated successfully, but these errors were encountered: