From 846f134cd3eec85cc5751f971d828c86ee64e19f Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 28 May 2022 01:07:45 +0900 Subject: [PATCH] Stabilize `toowned_clone_into` --- library/alloc/src/borrow.rs | 3 +-- library/std/src/lib.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/library/alloc/src/borrow.rs b/library/alloc/src/borrow.rs index cb4e438f8bea2..7a79fb77dea55 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 = 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 6dc3fd9858451..5145790fa6b36 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)] //