@@ -1708,8 +1708,6 @@ impl Option { |
|
|
1708 |
1708 |
/// # Examples |
1709 |
1709 |
/// |
1710 |
1710 |
/// ``` |
1711 |
|
- /// #![feature(option_take_if)] |
1712 |
|
- /// |
1713 |
1711 |
/// let mut x = Some(42); |
1714 |
1712 |
/// |
1715 |
1713 |
/// let prev = x.take_if(|v |
@@ -1726,7 +1724,7 @@ impl Option { |
|
|
1726 |
1724 |
/// assert_eq!(prev, Some(43)); |
1727 |
1725 |
/// ``` |
1728 |
1726 |
#[inline] |
1729 |
|
-#[unstable(feature = "option_take_if", issue = "98934")] |
|
1727 |
+#[stable(feature = "option_take_if", since = "CURRENT_RUSTC_VERSION")] |
1730 |
1728 |
pub fn take_if<P>(&mut self, predicate: P) -> Option<T> |
1731 |
1729 |
where |
1732 |
1730 |
P: FnOnce(&mut T) -> bool, |