Skip to content

Commit 9d7277b

Browse files
committed
change version tags to the proper format
1 parent 72324a8 commit 9d7277b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/array/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub const fn from_ref<T>(s: &T) -> &[T; 1] {
146146

147147
/// Converts a mutable reference to `T` into a mutable reference to an array of length 1 (without copying).
148148
#[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")]
150150
pub const fn from_mut<T>(s: &mut T) -> &mut [T; 1] {
151151
// SAFETY: Converting `&mut T` to `&mut [T; 1]` is sound.
152152
unsafe { &mut *(s as *mut T).cast::<[T; 1]>() }

library/core/src/slice/raw.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub const fn from_ref<T>(s: &T) -> &[T] {
203203

204204
/// Converts a reference to T into a slice of length 1 (without copying).
205205
#[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")]
207207
#[must_use]
208208
pub const fn from_mut<T>(s: &mut T) -> &mut [T] {
209209
array::from_mut(s)

0 commit comments

Comments
 (0)