rust/library/alloc
bors f639657fe4 Auto merge of #86433 - paolobarbolini:string-overlapping, r=m-ou-se
Use `copy_nonoverlapping` to copy `bytes` in `String::insert_bytes`

The second copy could be made using `ptr::copy_nonoverlapping` instead of `ptr::copy`, since aliasing won't allow `self` and `bytes` to overlap. LLVM even seems to recognize this, [replacing the second `memmove` with a `memcopy`](https://rust.godbolt.org/z/Yoaa6rrGn), so this makes it so it's always applied.
2021-06-19 23:10:55 +00:00
..
benches Update expressions where we can use array's IntoIterator implementation 2021-06-02 16:09:04 +06:00
src Use copy_nonoverlapping to copy bytes in String::insert_bytes 2021-06-18 15:14:22 +02:00
tests Lint for unused borrows as part of UNUSED_MUST_USE 2021-06-18 15:09:40 +08:00
Cargo.toml Add support for const operands and options to global_asm! 2021-05-13 22:31:57 +01:00