mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
36db030a7c
Attempt to reuse `Vec<T>` backing storage for `Rc/Arc<[T]>` If a `Vec<T>` has sufficient capacity to store the inner `RcBox<[T]>`, we can just reuse the existing allocation and shift the elements up, instead of making a new allocation.