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;
2020pub use iter:: IntoIter ;
2121
2222/// 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 " ) ]
2424pub fn from_ref < T > ( s : & T ) -> & [ T ; 1 ] {
2525 // SAFETY: Converting `&T` to `&[T; 1]` is sound.
2626 unsafe { & * ( s as * const T ) . cast :: < [ T ; 1 ] > ( ) }
2727}
2828
2929/// 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 " ) ]
3131pub fn from_mut < T > ( s : & mut T ) -> & mut [ T ; 1 ] {
3232 // SAFETY: Converting `&mut T` to `&mut [T; 1]` is sound.
3333 unsafe { & mut * ( s as * mut T ) . cast :: < [ T ; 1 ] > ( ) }
You can’t perform that action at this time.
0 commit comments