diff options
| author | Matt Brubeck <mbrubeck@limpet.net> | 2018-03-06 10:30:42 -0800 |
|---|---|---|
| committer | Matt Brubeck <mbrubeck@limpet.net> | 2018-03-06 14:40:26 -0800 |
| commit | d04362f23d5899af5aa01562c27fc6ddb53a4d7e (patch) | |
| tree | b65e4cda6cbfb99d7eea53f7adea6324cce15656 /src/libcore/option.rs | |
| parent | 2789b067da2ac921b86199bde21dd231ace1da39 (diff) | |
| download | rust-d04362f23d5899af5aa01562c27fc6ddb53a4d7e.tar.gz rust-d04362f23d5899af5aa01562c27fc6ddb53a4d7e.zip | |
Stabilize option_ref_mut_cloned
Closes #43738.
Diffstat (limited to 'src/libcore/option.rs')
| -rw-r--r-- | src/libcore/option.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 25f57d8c0f7..570f745f833 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -829,14 +829,13 @@ impl<'a, T: Clone> Option<&'a mut T> { /// # Examples /// /// ``` - /// #![feature(option_ref_mut_cloned)] /// let mut x = 12; /// let opt_x = Some(&mut x); /// assert_eq!(opt_x, Some(&mut 12)); /// let cloned = opt_x.cloned(); /// assert_eq!(cloned, Some(12)); /// ``` - #[unstable(feature = "option_ref_mut_cloned", issue = "43738")] + #[stable(since = "1.26.0", feature = "option_ref_mut_cloned")] pub fn cloned(self) -> Option<T> { self.map(|t| t.clone()) } |
