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 @@ -20,14 +20,14 @@ mod iter;
20
20
pub use iter:: IntoIter ;
21
21
22
22
/// Converts a reference to `T` into a reference to an array of length 1 (without copying).
23
- #[ unstable( feature = "array_from_ref" , issue = "none " ) ]
23
+ #[ unstable( feature = "array_from_ref" , issue = "77101 " ) ]
24
24
pub fn from_ref < T > ( s : & T ) -> & [ T ; 1 ] {
25
25
// SAFETY: Converting `&T` to `&[T; 1]` is sound.
26
26
unsafe { & * ( s as * const T ) . cast :: < [ T ; 1 ] > ( ) }
27
27
}
28
28
29
29
/// Converts a mutable reference to `T` into a mutable reference to an array of length 1 (without copying).
30
- #[ unstable( feature = "array_from_ref" , issue = "none " ) ]
30
+ #[ unstable( feature = "array_from_ref" , issue = "77101 " ) ]
31
31
pub fn from_mut < T > ( s : & mut T ) -> & mut [ T ; 1 ] {
32
32
// SAFETY: Converting `&mut T` to `&mut [T; 1]` is sound.
33
33
unsafe { & mut * ( s as * mut T ) . cast :: < [ T ; 1 ] > ( ) }
You can’t perform that action at this time.
0 commit comments