diff options
| author | okaneco <47607823+okaneco@users.noreply.github.com> | 2025-03-06 07:32:52 -0500 |
|---|---|---|
| committer | okaneco <47607823+okaneco@users.noreply.github.com> | 2025-03-06 07:32:52 -0500 |
| commit | d4c0c945773973ec6d10cb87d9a2396768f6e075 (patch) | |
| tree | a528436e856fe189f1c40eff6896f5a32671624d | |
| parent | 30f168ef811aec63124eac677e14699baa9395bd (diff) | |
| download | rust-d4c0c945773973ec6d10cb87d9a2396768f6e075.tar.gz rust-d4c0c945773973ec6d10cb87d9a2396768f6e075.zip | |
Stabilize `const_copy_from_slice` feature
Stabilizes `copy_from_slice` method on `[T]`
| -rw-r--r-- | library/core/src/slice/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index f991cc4ae2d..4055038b958 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -3732,8 +3732,7 @@ impl<T> [T] { #[doc(alias = "memcpy")] #[inline] #[stable(feature = "copy_from_slice", since = "1.9.0")] - #[rustc_const_unstable(feature = "const_copy_from_slice", issue = "131415")] - #[rustc_const_stable_indirect] + #[rustc_const_stable(feature = "const_copy_from_slice", since = "CURRENT_RUSTC_VERSION")] #[track_caller] pub const fn copy_from_slice(&mut self, src: &[T]) where |
