File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -698,14 +698,14 @@ impl<T, const N: usize> Cell<[T; N]> {
698698 /// # Examples
699699 ///
700700 /// ```
701- /// #![feature(as_array_of_cells)]
702701 /// use std::cell::Cell;
703702 ///
704703 /// let mut array: [i32; 3] = [1, 2, 3];
705704 /// let cell_array: &Cell<[i32; 3]> = Cell::from_mut(&mut array);
706705 /// let array_cell: &[Cell<i32>; 3] = cell_array.as_array_of_cells();
707706 /// ```
708- #[ unstable( feature = "as_array_of_cells" , issue = "88248" ) ]
707+ #[ stable( feature = "as_array_of_cells" , since = "CURRENT_RUSTC_VERSION" ) ]
708+ #[ rustc_const_stable( feature = "as_array_of_cells" , since = "CURRENT_RUSTC_VERSION" ) ]
709709 pub const fn as_array_of_cells ( & self ) -> & [ Cell < T > ; N ] {
710710 // SAFETY: `Cell<T>` has the same memory layout as `T`.
711711 unsafe { & * ( self as * const Cell < [ T ; N ] > as * const [ Cell < T > ; N ] ) }
You can’t perform that action at this time.
0 commit comments