diff options
| author | Josh Stone <jistone@redhat.com> | 2024-10-14 10:22:50 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2024-10-15 20:13:55 -0700 |
| commit | f204e2c23b20f3052acaec7e0e231deb4ee23e50 (patch) | |
| tree | b90fb814307ce0bb35e6f619ffd06d2ecd802a40 /library/core/src/array | |
| parent | 9ce3675b438aae22ef0c6147cde2003a418ab722 (diff) | |
| download | rust-f204e2c23b20f3052acaec7e0e231deb4ee23e50.tar.gz rust-f204e2c23b20f3052acaec7e0e231deb4ee23e50.zip | |
replace placeholder version
(cherry picked from commit 567fd9610cbfd220844443487059335d7e1ff021)
Diffstat (limited to 'library/core/src/array')
| -rw-r--r-- | library/core/src/array/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs index a95046162d2..72f48878904 100644 --- a/library/core/src/array/mod.rs +++ b/library/core/src/array/mod.rs @@ -146,7 +146,7 @@ pub const fn from_ref<T>(s: &T) -> &[T; 1] { /// Converts a mutable reference to `T` into a mutable reference to an array of length 1 (without copying). #[stable(feature = "array_from_ref", since = "1.53.0")] -#[rustc_const_stable(feature = "const_array_from_ref", since = "CURRENT_RUSTC_VERSION")] +#[rustc_const_stable(feature = "const_array_from_ref", since = "1.83.0")] #[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_mut_refs))] pub const fn from_mut<T>(s: &mut T) -> &mut [T; 1] { // SAFETY: Converting `&mut T` to `&mut [T; 1]` is sound. |
