bors 5d57ba86a8 Auto merge of #12097 - y21:issue9427-3, r=llogiq
don't change eagerness for struct literal syntax with significant drop

Fixes the bug reported by `@ju1ius` in https://github.com/rust-lang/rust-clippy/issues/9427#issuecomment-1878428001.

`eager_or_lazy` already understands to suppress eagerness changes when the expression type has a significant drop impl, but only for initialization of tuple structs or unit structs. This changes it to also avoid changing it for `Self { .. }` and `TypeWithDrop { .. }`

changelog: [`unnecessary_lazy_eval`]: don't suggest changing eagerness for struct literal syntax when type has a significant drop impl
2024-01-05 20:25:18 +00:00
..
2024-01-02 19:21:51 -05:00
2024-01-02 19:21:51 -05:00
2023-12-22 19:02:22 -05:00
2023-12-24 17:32:00 +02:00
2023-12-24 17:32:00 +02:00
2023-12-24 17:32:00 +02:00
2023-12-24 17:32:00 +02:00
2023-12-24 17:32:00 +02:00
2023-12-24 17:32:00 +02:00
2024-01-02 19:21:51 -05:00
2024-01-02 19:21:51 -05:00
2024-01-02 19:21:51 -05:00
2024-01-02 19:21:51 -05:00
2024-01-02 19:21:51 -05:00