@@ -495,7 +495,7 @@ impl<T> Cell<T> {
495
495
/// ```
496
496
#[ inline]
497
497
#[ stable( feature = "move_cell" , since = "1.17.0" ) ]
498
- #[ rustc_const_unstable ( feature = "const_cell" , issue = "131283 " ) ]
498
+ #[ rustc_const_stable ( feature = "const_cell" , since = "CURRENT_RUSTC_VERSION " ) ]
499
499
#[ rustc_confusables( "swap" ) ]
500
500
pub const fn replace ( & self , val : T ) -> T {
501
501
// SAFETY: This can cause data races if called from a separate thread,
@@ -537,7 +537,7 @@ impl<T: Copy> Cell<T> {
537
537
/// ```
538
538
#[ inline]
539
539
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
540
- #[ rustc_const_unstable ( feature = "const_cell" , issue = "131283 " ) ]
540
+ #[ rustc_const_stable ( feature = "const_cell" , since = "CURRENT_RUSTC_VERSION " ) ]
541
541
pub const fn get ( & self ) -> T {
542
542
// SAFETY: This can cause data races if called from a separate thread,
543
543
// but `Cell` is `!Sync` so this won't happen.
@@ -617,7 +617,7 @@ impl<T: ?Sized> Cell<T> {
617
617
/// ```
618
618
#[ inline]
619
619
#[ stable( feature = "cell_get_mut" , since = "1.11.0" ) ]
620
- #[ rustc_const_unstable ( feature = "const_cell" , issue = "131283 " ) ]
620
+ #[ rustc_const_stable ( feature = "const_cell" , since = "CURRENT_RUSTC_VERSION " ) ]
621
621
pub const fn get_mut ( & mut self ) -> & mut T {
622
622
self . value . get_mut ( )
623
623
}
@@ -637,7 +637,7 @@ impl<T: ?Sized> Cell<T> {
637
637
/// ```
638
638
#[ inline]
639
639
#[ stable( feature = "as_cell" , since = "1.37.0" ) ]
640
- #[ rustc_const_unstable ( feature = "const_cell" , issue = "131283 " ) ]
640
+ #[ rustc_const_stable ( feature = "const_cell" , since = "CURRENT_RUSTC_VERSION " ) ]
641
641
pub const fn from_mut ( t : & mut T ) -> & Cell < T > {
642
642
// SAFETY: `&mut` ensures unique access.
643
643
unsafe { & * ( t as * mut T as * const Cell < T > ) }
@@ -695,7 +695,7 @@ impl<T> Cell<[T]> {
695
695
/// assert_eq!(slice_cell.len(), 3);
696
696
/// ```
697
697
#[ stable( feature = "as_cell" , since = "1.37.0" ) ]
698
- #[ rustc_const_unstable ( feature = "const_cell" , issue = "131283 " ) ]
698
+ #[ rustc_const_stable ( feature = "const_cell" , since = "CURRENT_RUSTC_VERSION " ) ]
699
699
pub const fn as_slice_of_cells ( & self ) -> & [ Cell < T > ] {
700
700
// SAFETY: `Cell<T>` has the same memory layout as `T`.
701
701
unsafe { & * ( self as * const Cell < [ T ] > as * const [ Cell < T > ] ) }
0 commit comments