rust/library/core
Yuki Okushi 5498367faf
Rollup merge of #75392 - TimDiekmann:non-null-uninit-slice, r=RalfJung
Add `as_uninit`-like methods to pointer types and unify documentation of `as_ref` methods

This adds a convenient method to retrieve a `&(mut) [MaybeUninit<T>]` from slice pointers (`*const [T]`, `*mut [T]`, `NonNull<[T]>`). See also https://github.com/rust-lang/wg-allocators/issues/66#issuecomment-671789105.

~I'll add a tracking issue as soon as it's reviewed and CI passed.~
Tracking Issue: #75402

r? @RalfJung
2020-08-18 09:27:42 +09:00
..
benches mv std libs to library/ 2020-07-27 19:51:13 -05:00
src Rollup merge of #75392 - TimDiekmann:non-null-uninit-slice, r=RalfJung 2020-08-18 09:27:42 +09:00
tests Add drop check test & MaybeUninit::first_ptr_mut 2020-08-13 03:51:08 +00:00
Cargo.toml mv std libs to library/ 2020-07-27 19:51:13 -05:00