diff options
| author | Duarte Nunes <duarte.nunes@datadoghq.com> | 2022-07-13 14:22:50 -0300 |
|---|---|---|
| committer | Duarte Nunes <duarte.nunes@datadoghq.com> | 2022-07-13 14:29:35 -0300 |
| commit | 9cd66be2351099d2a74aeb67ccb13e148dfdf114 (patch) | |
| tree | 5fbd411a0f1fd142ee12a05162afaedd0e88a71a /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff | |
| parent | 42bd138126b0a9d38d65bc9973e72de3c5b6c37f (diff) | |
| download | rust-9cd66be2351099d2a74aeb67ccb13e148dfdf114.tar.gz rust-9cd66be2351099d2a74aeb67ccb13e148dfdf114.zip | |
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.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
