Link #95614
Cc @jmaargh
Location
https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.with_capacity
Summary
Latest stable guarantees that Vec::with_capacity() always allocates exact capacity (and this is indeed the case, since RawVec discards any extra allocated capacity). #96173 removes this guarantee. I believe this to be a breaking change requiring some further investigation.
Link #95614
Cc @jmaargh
Location
https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.with_capacity
Summary
Latest stable guarantees that
Vec::with_capacity()always allocates exact capacity (and this is indeed the case, sinceRawVecdiscards any extra allocated capacity). #96173 removes this guarantee. I believe this to be a breaking change requiring some further investigation.