Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace casts of slices (unsized types) with slice::from_raw_parts[_m…
…ut](). libcore/libstd is allowed to make assumptions avoid the validity about casts that extern code in general cannot. In particular it isn't clear that casting `[T]` to `[MaybeUninit<T>]` or vice-versa is guaranteed to be sound. Avoid the issue by using an alternative to casts.
- Loading branch information