File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ mod iter;
22
22
pub use iter:: IntoIter ;
23
23
24
24
/// Converts a reference to `T` into a reference to an array of length 1 (without copying).
25
- #[ unstable ( feature = "array_from_ref" , issue = "77101 " ) ]
25
+ #[ stable ( feature = "array_from_ref" , since = "1.53.0 " ) ]
26
26
pub fn from_ref < T > ( s : & T ) -> & [ T ; 1 ] {
27
27
// SAFETY: Converting `&T` to `&[T; 1]` is sound.
28
28
unsafe { & * ( s as * const T ) . cast :: < [ T ; 1 ] > ( ) }
29
29
}
30
30
31
31
/// Converts a mutable reference to `T` into a mutable reference to an array of length 1 (without copying).
32
- #[ unstable ( feature = "array_from_ref" , issue = "77101 " ) ]
32
+ #[ stable ( feature = "array_from_ref" , since = "1.53.0 " ) ]
33
33
pub fn from_mut < T > ( s : & mut T ) -> & mut [ T ; 1 ] {
34
34
// SAFETY: Converting `&mut T` to `&mut [T; 1]` is sound.
35
35
unsafe { & mut * ( s as * mut T ) . cast :: < [ T ; 1 ] > ( ) }
Original file line number Diff line number Diff line change 1
1
#![ feature( alloc_layout_extra) ]
2
2
#![ feature( array_chunks) ]
3
- #![ feature( array_from_ref) ]
4
3
#![ feature( array_methods) ]
5
4
#![ feature( array_map) ]
6
5
#![ feature( array_windows) ]
You can’t perform that action at this time.
0 commit comments