You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
more descriptive warning for irrefutable while-let pattern #79716
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
Activity
ehuss commentedon Dec 5, 2020
@ash2x3zb9cy FYI, there is an explanation of the warning at https://doc.rust-lang.org/nightly/rustc/lints/listing/warn-by-default.html#irrefutable-let-patterns. A
loopis recommended instead ofwhile letto make it clearer that it is an indefinite loop.I think it would be nice to link to the lint documentation in the compiler output, but there is some uncertainty of how to best go about that.
Rollup merge of rust-lang#79747 - camelid:irrefut-lint-link, r=varkor