about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-23 00:28:51 +0100
committerGitHub <noreply@github.com>2021-12-23 00:28:51 +0100
commitd8bf974df56618f75ecd38d7e61fe0d720a9c8c4 (patch)
tree40d4887860b696d494c84ff87e014ba8d6806a36 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent60625a6ef0ef57a2934918430be0121431ba96c9 (diff)
parent0198ea47d8f0a9d99820f9a3c168ab3d26fd4f2a (diff)
downloadrust-d8bf974df56618f75ecd38d7e61fe0d720a9c8c4.tar.gz
rust-d8bf974df56618f75ecd38d7e61fe0d720a9c8c4.zip
Rollup merge of #91544 - rukai:91492, r=wesleywiser
Fix duplicate derive clone suggestion

closes https://github.com/rust-lang/rust/issues/91492

The addition of:
```rust
derives.sort();
derives.dedup();
```
is what actually solves the problem.
The rest is just cleanup.

I want to improve the diagnostic message to provide the suggestion as a proper diff but ran into some problems, so I'll attempt that again in a follow up PR.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions