@@ -310,7 +310,7 @@ impl<T: ?Sized> *mut T {
310310/// ```
311311// FIXME: mention it in the docs for `as_ref` and `as_uninit_ref` once stabilized.
312312#[ unstable( feature = "ptr_as_ref_unchecked" , issue = "122034" ) ]
313- #[ rustc_const_unstable( feature = "const_ptr_as_ref " , issue = "91822 " ) ]
313+ #[ rustc_const_unstable( feature = "ptr_as_ref_unchecked " , issue = "122034 " ) ]
314314#[ inline]
315315#[ must_use]
316316pub const unsafe fn as_ref_unchecked < ' a > ( self ) -> & ' a T {
@@ -349,7 +349,7 @@ impl<T: ?Sized> *mut T {
349349/// ```
350350#[ inline]
351351#[ unstable( feature = "ptr_as_uninit" , issue = "75402" ) ]
352- #[ rustc_const_unstable( feature = "const_ptr_as_ref " , issue = "91822 " ) ]
352+ #[ rustc_const_unstable( feature = "ptr_as_uninit " , issue = "75402 " ) ]
353353pub const unsafe fn as_uninit_ref < ' a > ( self ) -> Option < & ' a MaybeUninit < T > >
354354where
355355T : Sized ,
@@ -631,7 +631,7 @@ impl<T: ?Sized> *mut T {
631631/// ```
632632// FIXME: mention it in the docs for `as_mut` and `as_uninit_mut` once stabilized.
633633#[ unstable( feature = "ptr_as_ref_unchecked" , issue = "122034" ) ]
634- #[ rustc_const_unstable( feature = "const_ptr_as_ref " , issue = "91822 " ) ]
634+ #[ rustc_const_unstable( feature = "ptr_as_ref_unchecked " , issue = "122034 " ) ]
635635#[ inline]
636636#[ must_use]
637637pub const unsafe fn as_mut_unchecked < ' a > ( self ) -> & ' a mut T {
@@ -654,7 +654,7 @@ impl<T: ?Sized> *mut T {
654654/// the pointer is [convertible to a reference](crate::ptr#pointer-to-reference-conversion).
655655#[ inline]
656656#[ unstable( feature = "ptr_as_uninit" , issue = "75402" ) ]
657- #[ rustc_const_unstable( feature = "const_ptr_as_ref " , issue = "91822 " ) ]
657+ #[ rustc_const_unstable( feature = "ptr_as_uninit " , issue = "75402 " ) ]
658658pub const unsafe fn as_uninit_mut < ' a > ( self ) -> Option < & ' a mut MaybeUninit < T > >
659659where
660660T : Sized ,
@@ -2031,7 +2031,7 @@ impl<T> *mut [T] {
20312031/// [allocated object]: crate::ptr#allocated-object
20322032#[ inline]
20332033#[ unstable( feature = "ptr_as_uninit" , issue = "75402" ) ]
2034- #[ rustc_const_unstable( feature = "const_ptr_as_ref " , issue = "91822 " ) ]
2034+ #[ rustc_const_unstable( feature = "ptr_as_uninit " , issue = "75402 " ) ]
20352035pub const unsafe fn as_uninit_slice < ' a > ( self ) -> Option < & ' a [ MaybeUninit < T > ] > {
20362036if self . is_null ( ) {
20372037None
@@ -2083,7 +2083,7 @@ impl<T> *mut [T] {
20832083/// [allocated object]: crate::ptr#allocated-object
20842084#[ inline]
20852085#[ unstable( feature = "ptr_as_uninit" , issue = "75402" ) ]
2086- #[ rustc_const_unstable( feature = "const_ptr_as_ref " , issue = "91822 " ) ]
2086+ #[ rustc_const_unstable( feature = "ptr_as_uninit " , issue = "75402 " ) ]
20872087pub const unsafe fn as_uninit_slice_mut < ' a > ( self ) -> Option < & ' a mut [ MaybeUninit < T > ] > {
20882088if self . is_null ( ) {
20892089None
0 commit comments