rust/library/alloc
Nicholas Nethercote 8217138f44 RawVec: don't recompute capacity after allocating.
Currently it sets the capacity to `ptr.len() / mem::size_of::<T>()`
after any buffer allocation/reallocation. This would be useful if
allocators ever returned a `NonNull<[u8]>` with a size larger than
requested. But this never happens, so it's not useful.

Removing this slightly reduces the size of generated LLVM IR, and
slightly speeds up the hot path of `RawVec` growth.
2021-12-22 05:13:41 +11:00
..
benches update vec::retain benchmarks 2021-12-04 16:20:35 +01:00
src RawVec: don't recompute capacity after allocating. 2021-12-22 05:13:41 +11:00
tests Rollup merge of #91916 - steffahn:fix-typos, r=dtolnay 2021-12-15 10:57:02 +01:00
Cargo.toml rfc3052: Remove authors field from Cargo manifests 2021-07-29 14:56:05 -07:00