2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 23
23
#![ feature( extract_if) ]
24
24
#![ feature( if_let_guard) ]
25
25
#![ feature( let_chains) ]
26
- #![ feature( option_take_if) ]
27
26
#![ feature( never_type) ]
28
27
#![ feature( type_alias_impl_trait) ]
29
28
#![ recursion_limit = "512" ] // For rustdoc
Original file line number Diff line number Diff line change @@ -1708,8 +1708,6 @@ impl<T> Option<T> {
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| if *v == 42 {
@@ -1726,7 +1724,7 @@ impl<T> Option<T> {
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 ,
0 commit comments