unnecessary_lazy_evaluations suggests a fix that panics #11931
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
In the example below,
unnecessary_lazy_evaluations
suggests a fix that is not functionally equivalent to the original code and that panics (the original code works normally).Lint Name
unnecessary_lazy_evaluations
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: No suggestion.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: