rust/library/alloc
bors 116d1a7056 Auto merge of #80824 - cuviper:heap-clones, r=kennytm
Try to avoid locals when cloning into Box/Rc/Arc

For generic `T: Clone`, we can allocate an uninitialized box beforehand,
which gives the optimizer a chance to create the clone directly in the
heap. For `T: Copy`, we can go further and do a simple memory copy,
regardless of optimization level.

The same applies to `Rc`/`Arc::make_mut` when they must clone the data.
2021-01-13 11:11:34 +00:00
..
benches Reorder benches const variable 2020-09-29 21:39:24 +08:00
src Auto merge of #80824 - cuviper:heap-clones, r=kennytm 2021-01-13 11:11:34 +00:00
tests Stabilize split_inclusive 2021-01-04 16:20:08 +00:00
Cargo.toml Update compiler_builtins to 0.1.39 2021-01-07 16:16:36 +09:00