diff options
| author | Martin Nordholts <martin.nordholts@codetale.se> | 2023-12-01 08:15:55 +0100 |
|---|---|---|
| committer | Martin Nordholts <martin.nordholts@codetale.se> | 2023-12-01 09:14:56 +0100 |
| commit | 512f302fd29fbc4bc4b920b4b22b1d1c49cc3917 (patch) | |
| tree | 0b23bf68056dcf735ce4380f3ba118bc281f22f5 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 57397a5190ba1b7a5a241ead090702b56959b025 (diff) | |
| download | rust-512f302fd29fbc4bc4b920b4b22b1d1c49cc3917.tar.gz rust-512f302fd29fbc4bc4b920b4b22b1d1c49cc3917.zip | |
needless_borrows_for_generic_args: Handle when field operand impl Drop
Before this fix, the lint had a false positive, namely when a reference was taken to a field when the field operand implements a custom Drop. The compiler will refuse to partially move a type that implements Drop, because that would put the operand in a weird state. See added regression test.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
