Skip to content

Commit d04362f

Browse files
committed
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

+1-2
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)