@@ -738,7 +738,7 @@ impl<T> Option<T> {
738
738
#[ inline]
739
739
#[ must_use]
740
740
#[ stable( feature = "pin" , since = "1.33.0" ) ]
741
- #[ rustc_const_unstable ( feature = "const_option_ext" , issue = "91930 " ) ]
741
+ #[ rustc_const_stable ( feature = "const_option_ext" , since = "CURRENT_RUSTC_VERSION " ) ]
742
742
pub const fn as_pin_ref ( self : Pin < & Self > ) -> Option < Pin < & T > > {
743
743
// FIXME(const-hack): use `map` once that is possible
744
744
match Pin :: get_ref ( self ) . as_ref ( ) {
@@ -755,7 +755,7 @@ impl<T> Option<T> {
755
755
#[ inline]
756
756
#[ must_use]
757
757
#[ stable( feature = "pin" , since = "1.33.0" ) ]
758
- #[ rustc_const_unstable ( feature = "const_option_ext" , issue = "91930 " ) ]
758
+ #[ rustc_const_stable ( feature = "const_option_ext" , since = "CURRENT_RUSTC_VERSION " ) ]
759
759
pub const fn as_pin_mut ( self : Pin < & mut Self > ) -> Option < Pin < & mut T > > {
760
760
// SAFETY: `get_unchecked_mut` is never used to move the `Option` inside `self`.
761
761
// `x` is guaranteed to be pinned because it comes from `self` which is pinned.
@@ -802,7 +802,7 @@ impl<T> Option<T> {
802
802
#[ inline]
803
803
#[ must_use]
804
804
#[ stable( feature = "option_as_slice" , since = "1.75.0" ) ]
805
- #[ rustc_const_unstable ( feature = "const_option_ext" , issue = "91930 " ) ]
805
+ #[ rustc_const_stable ( feature = "const_option_ext" , since = "CURRENT_RUSTC_VERSION " ) ]
806
806
pub const fn as_slice ( & self ) -> & [ T ] {
807
807
// SAFETY: When the `Option` is `Some`, we're using the actual pointer
808
808
// to the payload, with a length of 1, so this is equivalent to
@@ -857,7 +857,7 @@ impl<T> Option<T> {
857
857
#[ inline]
858
858
#[ must_use]
859
859
#[ stable( feature = "option_as_slice" , since = "1.75.0" ) ]
860
- #[ rustc_const_unstable ( feature = "const_option_ext" , issue = "91930 " ) ]
860
+ #[ rustc_const_stable ( feature = "const_option_ext" , since = "CURRENT_RUSTC_VERSION " ) ]
861
861
pub const fn as_mut_slice ( & mut self ) -> & mut [ T ] {
862
862
// SAFETY: When the `Option` is `Some`, we're using the actual pointer
863
863
// to the payload, with a length of 1, so this is equivalent to
0 commit comments