Files
rust/library/alloc/src
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
..
2020-07-27 19:51:13 -05:00
2020-11-07 12:50:57 -08:00
2021-01-01 19:57:10 +01:00
2020-12-11 10:09:40 -05:00
2021-01-12 12:24:28 -08:00
2020-07-27 19:51:13 -05:00