diff options
| author | Neil Roberts <bpeeluk@yahoo.co.uk> | 2023-01-28 14:19:01 +0100 |
|---|---|---|
| committer | Neil Roberts <bpeeluk@yahoo.co.uk> | 2023-01-28 20:37:01 +0100 |
| commit | ba80c662f448c69cbd184d18630b8824f0169b2e (patch) | |
| tree | 9204e8b8b73c81e9b386b1a5b4f16144ba1b0a66 /compiler/rustc_codegen_llvm/src | |
| parent | d6f0642827e21a088b0130c84857d84f5433301d (diff) | |
| download | rust-ba80c662f448c69cbd184d18630b8824f0169b2e.tar.gz rust-ba80c662f448c69cbd184d18630b8824f0169b2e.zip | |
slice: Add a specialization for clone_into when T is Copy
The implementation for the ToOwned::clone_into method on [T] is a copy of the code for vec::clone_from. In 361398009be6 the code for vec::clone_from gained a specialization for when T is Copy. This commit copies that specialization over to the clone_into implementation.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
