Add tracking issue for array_assume_init
This commit is contained in:
parent
72a3dee16f
commit
dec8c033a3
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ impl<T> MaybeUninit<T> {
|
||||||
///
|
///
|
||||||
/// assert_eq!(array, [0, 1, 2]);
|
/// assert_eq!(array, [0, 1, 2]);
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "maybe_uninit_array_assume_init", issue = "none")]
|
#[unstable(feature = "maybe_uninit_array_assume_init", issue = "80908")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub unsafe fn array_assume_init<const N: usize>(array: [Self; N]) -> [T; N] {
|
pub unsafe fn array_assume_init<const N: usize>(array: [Self; N]) -> [T; N] {
|
||||||
// Convert using a union because mem::transmute does not support const_generics
|
// Convert using a union because mem::transmute does not support const_generics
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue