regression: unnecessary_lazy_evaluations not triggered on thiserror enum variant #13249
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
In stable (1.79.0),
unnecessary_lazy_evaluations
does not trigger when the value of the closure is a constant error variant in an enum that derivesthiserror::Error
.Lint Name
unnecessary_lazy_evaluations
Reproducer
I tried this code:
I expected to see this happen: (from 1.63.0)
Instead, this happened:
no warning
Version
The text was updated successfully, but these errors were encountered: