File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -628,8 +628,6 @@ impl<T> Option<T> {
628
628
/// # Examples
629
629
///
630
630
/// ```rust
631
- /// #![feature(option_filter)]
632
- ///
633
631
/// fn is_even(n: &i32) -> bool {
634
632
/// n % 2 == 0
635
633
/// }
@@ -639,7 +637,7 @@ impl<T> Option<T> {
639
637
/// assert_eq!(Some(4).filter(is_even), Some(4));
640
638
/// ```
641
639
#[ inline]
642
- #[ unstable ( feature = "option_filter" , issue = "45860 " ) ]
640
+ #[ stable ( feature = "option_filter" , since = "1.27.0 " ) ]
643
641
pub fn filter < P : FnOnce ( & T ) -> bool > ( self , predicate : P ) -> Self {
644
642
if let Some ( x) = self {
645
643
if predicate ( & x) {
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ This API is completely unstable and subject to change.
76
76
#![ feature( crate_visibility_modifier) ]
77
77
#![ feature( from_ref) ]
78
78
#![ feature( exhaustive_patterns) ]
79
- #![ feature( option_filter) ]
80
79
#![ feature( quote) ]
81
80
#![ feature( refcell_replace_swap) ]
82
81
#![ feature( rustc_diagnostic_macros) ]
You can’t perform that action at this time.
0 commit comments