@@ -1186,7 +1186,7 @@ impl<Ptr: Deref<Target: Unpin>> Pin<Ptr> {
11861186 /// let mut pinned: Pin<&mut u8> = Pin::new(&mut val);
11871187 /// ```
11881188 #[ inline( always) ]
1189- #[ rustc_const_unstable ( feature = "const_pin" , issue = "76654 " ) ]
1189+ #[ rustc_const_stable ( feature = "const_pin" , since = "CURRENT_RUSTC_VERSION " ) ]
11901190 #[ stable( feature = "pin" , since = "1.33.0" ) ]
11911191 pub const fn new ( pointer : Ptr ) -> Pin < Ptr > {
11921192 // SAFETY: the value pointed to is `Unpin`, and so has no requirements
@@ -1214,7 +1214,7 @@ impl<Ptr: Deref<Target: Unpin>> Pin<Ptr> {
12141214 /// assert_eq!(*r, 5);
12151215 /// ```
12161216 #[ inline( always) ]
1217- #[ rustc_const_unstable( feature = "const_pin " , issue = "76654" ) ]
1217+ #[ rustc_const_unstable( feature = "const_pin_2 " , issue = "76654" ) ]
12181218 #[ stable( feature = "pin_into_inner" , since = "1.39.0" ) ]
12191219 pub const fn into_inner ( pin : Pin < Ptr > ) -> Ptr {
12201220 pin. __pointer
@@ -1351,7 +1351,7 @@ impl<Ptr: Deref> Pin<Ptr> {
13511351 /// [`pin` module docs]: self
13521352 #[ lang = "new_unchecked" ]
13531353 #[ inline( always) ]
1354- #[ rustc_const_unstable ( feature = "const_pin" , issue = "76654 " ) ]
1354+ #[ rustc_const_stable ( feature = "const_pin" , since = "CURRENT_RUSTC_VERSION " ) ]
13551355 #[ stable( feature = "pin" , since = "1.33.0" ) ]
13561356 pub const unsafe fn new_unchecked ( pointer : Ptr ) -> Pin < Ptr > {
13571357 Pin { __pointer : pointer }
@@ -1503,7 +1503,7 @@ impl<Ptr: Deref> Pin<Ptr> {
15031503 /// If the underlying data is [`Unpin`], [`Pin::into_inner`] should be used
15041504 /// instead.
15051505 #[ inline( always) ]
1506- #[ rustc_const_unstable( feature = "const_pin " , issue = "76654" ) ]
1506+ #[ rustc_const_unstable( feature = "const_pin_2 " , issue = "76654" ) ]
15071507 #[ stable( feature = "pin_into_inner" , since = "1.39.0" ) ]
15081508 pub const unsafe fn into_inner_unchecked ( pin : Pin < Ptr > ) -> Ptr {
15091509 pin. __pointer
@@ -1559,7 +1559,7 @@ impl<'a, T: ?Sized> Pin<&'a T> {
15591559 /// ["pinning projections"]: self#projections-and-structural-pinning
15601560 #[ inline( always) ]
15611561 #[ must_use]
1562- #[ rustc_const_unstable ( feature = "const_pin" , issue = "76654 " ) ]
1562+ #[ rustc_const_stable ( feature = "const_pin" , since = "CURRENT_RUSTC_VERSION " ) ]
15631563 #[ stable( feature = "pin" , since = "1.33.0" ) ]
15641564 pub const fn get_ref ( self ) -> & ' a T {
15651565 self . __pointer
@@ -1570,7 +1570,7 @@ impl<'a, T: ?Sized> Pin<&'a mut T> {
15701570 /// Converts this `Pin<&mut T>` into a `Pin<&T>` with the same lifetime.
15711571 #[ inline( always) ]
15721572 #[ must_use = "`self` will be dropped if the result is not used" ]
1573- #[ rustc_const_unstable ( feature = "const_pin" , issue = "76654 " ) ]
1573+ #[ rustc_const_stable ( feature = "const_pin" , since = "CURRENT_RUSTC_VERSION " ) ]
15741574 #[ stable( feature = "pin" , since = "1.33.0" ) ]
15751575 pub const fn into_ref ( self ) -> Pin < & ' a T > {
15761576 Pin { __pointer : self . __pointer }
@@ -1588,7 +1588,7 @@ impl<'a, T: ?Sized> Pin<&'a mut T> {
15881588 #[ inline( always) ]
15891589 #[ must_use = "`self` will be dropped if the result is not used" ]
15901590 #[ stable( feature = "pin" , since = "1.33.0" ) ]
1591- #[ rustc_const_unstable ( feature = "const_pin" , issue = "76654 " ) ]
1591+ #[ rustc_const_stable ( feature = "const_pin" , since = "CURRENT_RUSTC_VERSION " ) ]
15921592 pub const fn get_mut ( self ) -> & ' a mut T
15931593 where
15941594 T : Unpin ,
@@ -1609,7 +1609,7 @@ impl<'a, T: ?Sized> Pin<&'a mut T> {
16091609 #[ inline( always) ]
16101610 #[ must_use = "`self` will be dropped if the result is not used" ]
16111611 #[ stable( feature = "pin" , since = "1.33.0" ) ]
1612- #[ rustc_const_unstable ( feature = "const_pin" , issue = "76654 " ) ]
1612+ #[ rustc_const_stable ( feature = "const_pin" , since = "CURRENT_RUSTC_VERSION " ) ]
16131613 pub const unsafe fn get_unchecked_mut ( self ) -> & ' a mut T {
16141614 self . __pointer
16151615 }
@@ -1652,7 +1652,7 @@ impl<T: ?Sized> Pin<&'static T> {
16521652 /// This is safe because `T` is borrowed immutably for the `'static` lifetime, which
16531653 /// never ends.
16541654 #[ stable( feature = "pin_static_ref" , since = "1.61.0" ) ]
1655- #[ rustc_const_unstable ( feature = "const_pin" , issue = "76654 " ) ]
1655+ #[ rustc_const_stable ( feature = "const_pin" , since = "CURRENT_RUSTC_VERSION " ) ]
16561656 pub const fn static_ref ( r : & ' static T ) -> Pin < & ' static T > {
16571657 // SAFETY: The 'static borrow guarantees the data will not be
16581658 // moved/invalidated until it gets dropped (which is never).
@@ -1666,7 +1666,7 @@ impl<T: ?Sized> Pin<&'static mut T> {
16661666 /// This is safe because `T` is borrowed for the `'static` lifetime, which
16671667 /// never ends.
16681668 #[ stable( feature = "pin_static_ref" , since = "1.61.0" ) ]
1669- #[ rustc_const_unstable ( feature = "const_pin" , issue = "76654 " ) ]
1669+ #[ rustc_const_stable ( feature = "const_pin" , since = "CURRENT_RUSTC_VERSION " ) ]
16701670 pub const fn static_mut ( r : & ' static mut T ) -> Pin < & ' static mut T > {
16711671 // SAFETY: The 'static borrow guarantees the data will not be
16721672 // moved/invalidated until it gets dropped (which is never).
0 commit comments