Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d04362f

Browse files
committedMar 6, 2018
Stabilize option_ref_mut_cloned
Closes #43738.
1 parent 2789b06 commit d04362f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/libcore/option.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,14 +829,13 @@ impl<'a, T: Clone> Option<&'a mut T> {
829829
/// # Examples
830830
///
831831
/// ```
832-
/// #![feature(option_ref_mut_cloned)]
833832
/// let mut x = 12;
834833
/// let opt_x = Some(&mut x);
835834
/// assert_eq!(opt_x, Some(&mut 12));
836835
/// let cloned = opt_x.cloned();
837836
/// assert_eq!(cloned, Some(12));
838837
/// ```
839-
#[unstable(feature = "option_ref_mut_cloned", issue = "43738")]
838+
#[stable(since = "1.26.0", feature = "option_ref_mut_cloned")]
840839
pub fn cloned(self) -> Option<T> {
841840
self.map(|t| t.clone())
842841
}

0 commit comments

Comments
 (0)
Please sign in to comment.