diff options
| author | bors <bors@rust-lang.org> | 2024-01-05 20:25:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-05 20:25:18 +0000 |
| commit | 5d57ba86a83420dca65eae2264f52ddcdf827634 (patch) | |
| tree | 3e1cc57703923761e2b865b4c892f472fbca9926 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 7bb0e9c2f25e3ab9b6ae2af6de448739b8662b00 (diff) | |
| parent | 890c0702e4838f4d547f2451fc32d04691c73275 (diff) | |
| download | rust-5d57ba86a83420dca65eae2264f52ddcdf827634.tar.gz rust-5d57ba86a83420dca65eae2264f52ddcdf827634.zip | |
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
