]> git.lizzy.rs Git - rust.git/commitdiff
Stabilize copy_within
authorkennytm <kennytm@gmail.com>
Fri, 31 May 2019 12:02:07 +0000 (20:02 +0800)
committerkennytm <kennytm@gmail.com>
Fri, 31 May 2019 12:02:07 +0000 (20:02 +0800)
src/libcore/slice/mod.rs
src/libcore/tests/lib.rs

index 0e782bef39dd8ee6b4dd011f6df94da6369dee3a..44ff3696b8dae09c9d981f49d362eb31e2d2bba7 100644 (file)
@@ -2146,14 +2146,13 @@ pub fn copy_from_slice(&mut self, src: &[T]) where T: Copy {
     /// Copying four bytes within a slice:
     ///
     /// ```
-    /// # #![feature(copy_within)]
     /// let mut bytes = *b"Hello, World!";
     ///
     /// bytes.copy_within(1..5, 8);
     ///
     /// assert_eq!(&bytes, b"Hello, Wello!");
     /// ```
-    #[unstable(feature = "copy_within", issue = "54236")]
+    #[stable(feature = "copy_within", since = "1.37.0")]
     pub fn copy_within<R: ops::RangeBounds<usize>>(&mut self, src: R, dest: usize)
     where
         T: Copy,
index c617596aba80159af2ecb5f3c4967bc099897f8f..d789c22053a55e1dd990ba8d36a93d11af2b4420 100644 (file)
@@ -29,7 +29,6 @@
 #![feature(inner_deref)]
 #![feature(slice_internals)]
 #![feature(slice_partition_dedup)]
-#![feature(copy_within)]
 #![feature(int_error_matching)]
 #![feature(const_fn)]
 #![warn(rust_2018_idioms)]