diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-24 21:23:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-24 21:23:47 +0200 |
| commit | 07157b78b1acc47100bebfc0070d322cee2d9fa5 (patch) | |
| tree | ac11ce27fb66b7a7ba5fcbe634798d1c988d64e8 /library/core/src/array | |
| parent | 038d599eda4fe3e3d78103fba51ee663df86dadf (diff) | |
| parent | 38c55452445fbf9b3abaf7023273e3318e4bd64b (diff) | |
| download | rust-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.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 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 } |
