File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -628,8 +628,6 @@ impl<T> Option<T> {
628628 /// # Examples
629629 ///
630630 /// ```rust
631- /// #![feature(option_filter)]
632- ///
633631 /// fn is_even(n: &i32) -> bool {
634632 /// n % 2 == 0
635633 /// }
@@ -639,7 +637,7 @@ impl<T> Option<T> {
639637 /// assert_eq!(Some(4).filter(is_even), Some(4));
640638 /// ```
641639 #[ inline]
642- #[ unstable ( feature = "option_filter" , issue = "45860 " ) ]
640+ #[ stable ( feature = "option_filter" , since = "1.27.0 " ) ]
643641 pub fn filter < P : FnOnce ( & T ) -> bool > ( self , predicate : P ) -> Self {
644642 if let Some ( x) = self {
645643 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.
7676#![ feature( crate_visibility_modifier) ]
7777#![ feature( from_ref) ]
7878#![ feature( exhaustive_patterns) ]
79- #![ feature( option_filter) ]
8079#![ feature( quote) ]
8180#![ feature( refcell_replace_swap) ]
8281#![ feature( rustc_diagnostic_macros) ]
You can’t perform that action at this time.
0 commit comments