rust/src/liballoc
Ralf Jung 8d64fd80ad
Rollup merge of #72499 - mendess:master, r=dtolnay
Override Box::<[T]>::clone_from

Avoid dropping and reallocating when cloning to an existing box if the lengths are the same.

It would be nice if this could also be specialized for `Copy` but I don't know how that works since it's not on stable. Will gladly look into it if it's deemed as a good idea.

This is my first PR with code, hope I did everything right 😄
2020-05-30 13:45:06 +02:00
..
alloc liballoc tests: Miri supports threads now 2020-05-01 11:16:38 +02:00
benches Introduce BTreeMap benches of iter itself 2020-04-25 00:05:10 +02:00
collections Add Extend::{extend_one,extend_reserve} 2020-05-29 17:05:17 -07:00
prelude
raw_vec Tiny Vecs are dumb. 2020-05-18 15:26:59 +10:00
rc
sync fix test_weak_count_locked for Miri 2020-05-11 16:49:36 +02:00
tests Remove flaky test and document the other's flakiness 2020-05-29 11:24:26 +01:00
alloc.rs Stop importing integer modules in liballoc 2020-04-05 11:22:01 +02:00
borrow.rs
boxed.rs Rollup merge of #72499 - mendess:master, r=dtolnay 2020-05-30 13:45:06 +02:00
Cargo.toml
fmt.rs grammar: dealing-with 2020-05-06 19:01:27 -04:00
lib.rs Add Extend::{extend_one,extend_reserve} 2020-05-29 17:05:17 -07:00
macros.rs make vec![,] uncompilable 2020-04-14 10:27:55 +03:00
raw_vec.rs Fix grammar in liballoc raw_vec 2020-05-29 00:40:41 +08:00
rc.rs Rollup merge of #72288 - vorner:stabilize-weak-into-raw, r=dtolnay 2020-05-29 15:06:55 +09:00
slice.rs Explain why we shouldn't add inline attr to into_vec 2020-04-19 01:03:43 +09:00
str.rs Replace max/min_value() with MAX/MIN assoc consts 2020-04-03 09:33:10 +02:00
string.rs Add Extend::{extend_one,extend_reserve} 2020-05-29 17:05:17 -07:00
sync.rs Rollup merge of #72288 - vorner:stabilize-weak-into-raw, r=dtolnay 2020-05-29 15:06:55 +09:00
task.rs Add Arc::{incr,decr}_strong_count 2020-05-07 17:18:25 +02:00
tests.rs Stop importing integer modules in liballoc 2020-04-05 11:22:01 +02:00
vec.rs Add Extend::{extend_one,extend_reserve} 2020-05-29 17:05:17 -07:00