Skip to content

Commit

Permalink
Rollup merge of #97455 - JohnTitor:stabilize-toowned-clone-into, r=dt…
Browse files Browse the repository at this point in the history
…olnay

Stabilize `toowned_clone_into`

Closes #41263
FCP has been done: #41263 (comment)
  • Loading branch information
Dylan-DPC authored May 31, 2022
2 parents 38d8167 + 846f134 commit bf248c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions library/alloc/src/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
1 change: 0 additions & 1 deletion library/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
//
Expand Down

0 comments on commit bf248c8

Please sign in to comment.