about summary refs log tree commit diff
path: root/src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorDuarte Nunes <duarte.nunes@datadoghq.com>2022-07-13 14:22:50 -0300
committerDuarte Nunes <duarte.nunes@datadoghq.com>2022-07-13 14:29:35 -0300
commit9cd66be2351099d2a74aeb67ccb13e148dfdf114 (patch)
tree5fbd411a0f1fd142ee12a05162afaedd0e88a71a /src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff
parent42bd138126b0a9d38d65bc9973e72de3c5b6c37f (diff)
downloadrust-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 'src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions