File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1642,7 +1642,7 @@ impl<T> NonNull<[T]> {
1642
1642
#[ inline]
1643
1643
#[ must_use]
1644
1644
#[ unstable( feature = "ptr_as_uninit" , issue = "75402" ) ]
1645
- #[ rustc_const_unstable( feature = "const_ptr_as_ref " , issue = "91822 " ) ]
1645
+ #[ rustc_const_unstable( feature = "ptr_as_uninit " , issue = "75402 " ) ]
1646
1646
pub const unsafe fn as_uninit_slice < ' a > ( self ) -> & ' a [ MaybeUninit < T > ] {
1647
1647
// SAFETY: the caller must uphold the safety contract for `as_uninit_slice`.
1648
1648
unsafe { slice:: from_raw_parts ( self . cast ( ) . as_ptr ( ) , self . len ( ) ) }
@@ -1707,7 +1707,7 @@ impl<T> NonNull<[T]> {
1707
1707
#[ inline]
1708
1708
#[ must_use]
1709
1709
#[ unstable( feature = "ptr_as_uninit" , issue = "75402" ) ]
1710
- #[ rustc_const_unstable( feature = "const_ptr_as_ref " , issue = "91822 " ) ]
1710
+ #[ rustc_const_unstable( feature = "ptr_as_uninit " , issue = "75402 " ) ]
1711
1711
pub const unsafe fn as_uninit_slice_mut < ' a > ( self ) -> & ' a mut [ MaybeUninit < T > ] {
1712
1712
// SAFETY: the caller must uphold the safety contract for `as_uninit_slice_mut`.
1713
1713
unsafe { slice:: from_raw_parts_mut ( self . cast ( ) . as_ptr ( ) , self . len ( ) ) }
You can’t perform that action at this time.
0 commit comments