the existence of a label on a loop prevents the warning from firing, which is silly because labels can also be legally applied to a while_let, so even a "comment" label could be preserved after the transformation
clippy 0.1.99 (c98d0cb27c 2026-08-12)
Summary
the existence of a label on a loop prevents the warning from firing, which is silly because labels can also be legally applied to a while_let, so even a "comment" label could be preserved after the transformation
Lint Name
while_let_loop
Reproducer
https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=8c9d420ee6ddc8b5f55736e9d84aa3d4
Version