more descriptive warning for irrefutable while-let pattern #79716
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Writing a while-let loop for e. g. an event loop triggers a compiler warning:
There's no error code, and no further information, so it isn't the easiest to investigate as a user.
In my case, I believe it's warning about potentially running an unintentionally infinite/indefinite loop, which in my case is intentional. So my guess would be that I am OK to #[allow] it - at a guess.
I would suggest that additional notes be added to this warning detailing why it's a potential problem
The text was updated successfully, but these errors were encountered: