about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-24 21:23:47 +0200
committerGitHub <noreply@github.com>2025-05-24 21:23:47 +0200
commit07157b78b1acc47100bebfc0070d322cee2d9fa5 (patch)
treeac11ce27fb66b7a7ba5fcbe634798d1c988d64e8 /library/core/src/array
parent038d599eda4fe3e3d78103fba51ee663df86dadf (diff)
parent38c55452445fbf9b3abaf7023273e3318e4bd64b (diff)
downloadrust-07157b78b1acc47100bebfc0070d322cee2d9fa5.tar.gz
rust-07157b78b1acc47100bebfc0070d322cee2d9fa5.zip
Rollup merge of #140066 - thaliaarchi:const-array-as-mut-slice, r=jhpratt
Stabilize `<[T; N]>::as_mut_slice` as `const`

This is trivial and has no design questions.

Tracked in https://github.com/rust-lang/rust/issues/133333.

r? libs-api
Diffstat (limited to 'library/core/src/array')
-rw-r--r--library/core/src/array/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index 4476e3f7923..221ca91e005 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -588,7 +588,7 @@ impl<T, const N: usize> [T; N] {
     /// Returns a mutable slice containing the entire array. Equivalent to
     /// `&mut s[..]`.
     #[stable(feature = "array_as_slice", since = "1.57.0")]
-    #[rustc_const_unstable(feature = "const_array_as_mut_slice", issue = "133333")]
+    #[rustc_const_stable(feature = "const_array_as_mut_slice", since = "CURRENT_RUSTC_VERSION")]
     pub const fn as_mut_slice(&mut self) -> &mut [T] {
         self
     }