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
This commit is contained in:
Dylan DPC 2022-05-31 07:57:35 +02:00 committed by GitHub
commit bf248c82e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -67,14 +67,13 @@ pub trait ToOwned {
/// Basic usage: /// Basic usage:
/// ///
/// ``` /// ```
/// # #![feature(toowned_clone_into)]
/// let mut s: String = String::new(); /// let mut s: String = String::new();
/// "hello".clone_into(&mut s); /// "hello".clone_into(&mut s);
/// ///
/// let mut v: Vec<i32> = Vec::new(); /// let mut v: Vec<i32> = Vec::new();
/// [1, 2][..].clone_into(&mut v); /// [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) { fn clone_into(&self, target: &mut Self::Owned) {
*target = self.to_owned(); *target = self.to_owned();
} }

View File

@ -298,7 +298,6 @@
#![feature(map_try_insert)] #![feature(map_try_insert)]
#![feature(new_uninit)] #![feature(new_uninit)]
#![feature(thin_box)] #![feature(thin_box)]
#![feature(toowned_clone_into)]
#![feature(try_reserve_kind)] #![feature(try_reserve_kind)]
#![feature(vec_into_raw_parts)] #![feature(vec_into_raw_parts)]
// //