about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-05-31 07:57:35 +0200
committerGitHub <noreply@github.com>2022-05-31 07:57:35 +0200
commitbf248c82e86f0205d953a04b0ed07e67c7109895 (patch)
tree3f1448a19c146c94baad64c7438fcd2209561e2f
parent38d8167d2e982bf0ad8d24aa994ad4adca0f6020 (diff)
parent846f134cd3eec85cc5751f971d828c86ee64e19f (diff)
downloadrust-bf248c82e86f0205d953a04b0ed07e67c7109895.tar.gz
rust-bf248c82e86f0205d953a04b0ed07e67c7109895.zip
Rollup merge of #97455 - JohnTitor:stabilize-toowned-clone-into, r=dtolnay
Stabilize `toowned_clone_into`

Closes #41263
FCP has been done: https://github.com/rust-lang/rust/issues/41263#issuecomment-1100760750
-rw-r--r--library/alloc/src/borrow.rs3
-rw-r--r--library/std/src/lib.rs1
2 files changed, 1 insertions, 3 deletions
diff --git a/library/alloc/src/borrow.rs b/library/alloc/src/borrow.rs
index cb4e438f8be..7a79fb77dea 100644
--- a/library/alloc/src/borrow.rs
+++ b/library/alloc/src/borrow.rs
@@ -67,14 +67,13 @@ pub trait ToOwned {
     /// Basic usage:
     ///
     /// ```
-    /// # #![feature(toowned_clone_into)]
     /// let mut s: String = String::new();
     /// "hello".clone_into(&mut s);
     ///
     /// let mut v: Vec<i32> = Vec::new();
     /// [1, 2][..].clone_into(&mut v);
     /// ```
-    #[unstable(feature = "toowned_clone_into", reason = "recently added", issue = "41263")]
+    #[stable(feature = "toowned_clone_into", since = "1.63.0")]
     fn clone_into(&self, target: &mut Self::Owned) {
         *target = self.to_owned();
     }
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index 6dc3fd98584..5145790fa6b 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -298,7 +298,6 @@
 #![feature(map_try_insert)]
 #![feature(new_uninit)]
 #![feature(thin_box)]
-#![feature(toowned_clone_into)]
 #![feature(try_reserve_kind)]
 #![feature(vec_into_raw_parts)]
 //