File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ pub const fn from_ref<T>(s: &T) -> &[T; 1] {
146
146
147
147
/// Converts a mutable reference to `T` into a mutable reference to an array of length 1 (without copying).
148
148
#[ stable( feature = "array_from_ref" , since = "1.53.0" ) ]
149
- #[ rustc_const_stable( feature = "const_array_from_ref" , since = "1.83.0 " ) ]
149
+ #[ rustc_const_stable( feature = "const_array_from_ref" , since = "CURRENT_RUSTC_VERSION " ) ]
150
150
pub const fn from_mut < T > ( s : & mut T ) -> & mut [ T ; 1 ] {
151
151
// SAFETY: Converting `&mut T` to `&mut [T; 1]` is sound.
152
152
unsafe { & mut * ( s as * mut T ) . cast :: < [ T ; 1 ] > ( ) }
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ pub const fn from_ref<T>(s: &T) -> &[T] {
203
203
204
204
/// Converts a reference to T into a slice of length 1 (without copying).
205
205
#[ stable( feature = "from_ref" , since = "1.28.0" ) ]
206
- #[ rustc_const_stable( feature = "const_slice_from_ref" , since = "1.83.0 " ) ]
206
+ #[ rustc_const_stable( feature = "const_slice_from_ref" , since = "CURRENT_RUSTC_VERSION " ) ]
207
207
#[ must_use]
208
208
pub const fn from_mut < T > ( s : & mut T ) -> & mut [ T ] {
209
209
array:: from_mut ( s)
You can’t perform that action at this time.
0 commit comments