Skip to content

Commit be6fc6a

Browse files
committed
Stabilize copy_within
1 parent 3ade426 commit be6fc6a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/libcore/slice/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2146,14 +2146,13 @@ impl<T> [T] {
21462146
/// Copying four bytes within a slice:
21472147
///
21482148
/// ```
2149-
/// # #![feature(copy_within)]
21502149
/// let mut bytes = *b"Hello, World!";
21512150
///
21522151
/// bytes.copy_within(1..5, 8);
21532152
///
21542153
/// assert_eq!(&bytes, b"Hello, Wello!");
21552154
/// ```
2156-
#[unstable(feature = "copy_within", issue = "54236")]
2155+
#[stable(feature = "copy_within", since = "1.37.0")]
21572156
pub fn copy_within<R: ops::RangeBounds<usize>>(&mut self, src: R, dest: usize)
21582157
where
21592158
T: Copy,

src/libcore/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#![feature(inner_deref)]
3030
#![feature(slice_internals)]
3131
#![feature(slice_partition_dedup)]
32-
#![feature(copy_within)]
3332
#![feature(int_error_matching)]
3433
#![feature(const_fn)]
3534
#![warn(rust_2018_idioms)]

0 commit comments

Comments
 (0)