rust/library/alloc/src
bors 36db030a7c Auto merge of #104205 - clubby789:grow-rc, r=thomcc
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.
2022-11-17 10:48:22 +00:00
..
alloc run alloc benchmarks in Miri and fix UB 2022-11-07 10:34:04 +01:00
boxed remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
collections Auto merge of #103858 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini 2022-11-14 00:07:19 +00:00
ffi remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
raw_vec Add a unit test for zero-sized types in RawVec. 2021-11-26 19:30:45 +11:00
rc Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
sync add some Miri-only tests 2022-08-18 18:07:39 -04:00
vec Vec: IntoIterator signature consistency 2022-11-06 15:25:00 +00:00
alloc.rs cfg-step code 2022-11-06 17:21:21 -05:00
borrow.rs Remove redundant lifetime bound from impl Borrow for Cow 2022-07-22 01:35:39 +02:00
boxed.rs Bump version placeholders to release 2022-11-06 17:11:02 -05:00
fmt.rs Detect and reject out-of-range integers in format string literals 2022-10-01 01:05:01 +02:00
lib.rs Enforce Tuple trait on Fn traits 2022-11-05 17:34:47 +00:00
macros.rs Extra documentation for new formatting feature 2022-08-21 15:28:27 -04:00
raw_vec.rs Make ZST checks in core/alloc more readable 2022-09-22 23:12:29 -07:00
rc.rs Reuse Vec<T> backing storage for Rc<[T]> 2022-11-14 01:15:18 +00:00
slice.rs Auto merge of #102169 - scottmcm:constify-some-conditions, r=thomcc 2022-09-25 01:20:11 +00:00
str.rs Rollup merge of #93162 - camsteffen:std-prim-docs, r=Mark-Simulacrum 2022-08-22 11:45:40 +05:30
string.rs Add tracking issue for string_extend_from_within 2022-10-31 12:01:20 -04:00
sync.rs Add Vec storage optimization to Arc and add tests 2022-11-14 02:30:18 +00:00
task.rs Document the conditional existence of alloc::sync and alloc::task. 2022-06-17 20:03:23 -07:00
tests.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00