unnecessary_lazy_evaluations
suggests wrong fix
#11672
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
unnecessary_lazy_evaluations
is normally a great lint, but in this example it produces a fix that does not compile.The realistic example comes from embassy/embassy-usb.
Reproducer
I tried this code (see playground):
I expected to see this happen: No lint or a valid correction
Instead, this happened:
Version
Additional Labels
@rustbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: