1
Fork 0
rust/library/alloc
Duarte Nunes 9cd66be235 docs: be less harsh in wording for Vec::from_raw_parts
In particular, be clear that it is sound to specify memory not
originating from a previous `Vec` allocation. That is already suggested
in other parts of the documentation about zero-alloc conversions to Box<[T]>.

Incorporate a constraint from `slice::from_raw_parts` that was missing
but needs to be fulfilled, since a `Vec` can be converted into a slice.
2022-07-13 14:29:35 -03:00
..
benches Add VecDeque::extend TrustedLen benchmark 2022-06-17 23:41:03 +02:00
src docs: be less harsh in wording for Vec::from_raw_parts 2022-07-13 14:29:35 -03:00
tests Auto merge of #95295 - CAD97:layout-isize, r=scottmcm 2022-07-10 08:54:32 +00:00
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00