diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-05-28 01:07:45 +0900 |
|---|---|---|
| committer | Yuki Okushi <jtitor@2k36.org> | 2022-05-28 01:07:45 +0900 |
| commit | 846f134cd3eec85cc5751f971d828c86ee64e19f (patch) | |
| tree | 523f0e1916470582b979fb3595c2b882cb80f521 /library/alloc/src | |
| parent | 56fd680cf9226ab424f88d4e3b43c5e088d17f19 (diff) | |
| download | rust-846f134cd3eec85cc5751f971d828c86ee64e19f.tar.gz rust-846f134cd3eec85cc5751f971d828c86ee64e19f.zip | |
Stabilize `toowned_clone_into`
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/borrow.rs | 3 |
1 files changed, 1 insertions, 2 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(); } |
