File tree 4 files changed +1
-6
lines changed
4 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 6
6
#![ feature( box_patterns) ]
7
7
#![ feature( decl_macro) ]
8
8
#![ feature( if_let_guard) ]
9
- #![ feature( is_none_or) ]
10
9
#![ feature( let_chains) ]
11
10
#![ feature( never_type) ]
12
11
#![ feature( rustdoc_internals) ]
Original file line number Diff line number Diff line change 5
5
#![ feature( box_patterns) ]
6
6
#![ feature( control_flow_enum) ]
7
7
#![ feature( if_let_guard) ]
8
- #![ feature( is_none_or) ]
9
8
#![ feature( let_chains) ]
10
9
#![ feature( never_type) ]
11
10
#![ feature( try_blocks) ]
Original file line number Diff line number Diff line change @@ -656,8 +656,6 @@ impl<T> Option<T> {
656
656
/// # Examples
657
657
///
658
658
/// ```
659
- /// #![feature(is_none_or)]
660
- ///
661
659
/// let x: Option<u32> = Some(2);
662
660
/// assert_eq!(x.is_none_or(|x| x > 1), true);
663
661
///
@@ -669,7 +667,7 @@ impl<T> Option<T> {
669
667
/// ```
670
668
#[ must_use]
671
669
#[ inline]
672
- #[ unstable ( feature = "is_none_or" , issue = "126383 " ) ]
670
+ #[ stable ( feature = "is_none_or" , since = "CURRENT_RUSTC_VERSION " ) ]
673
671
pub fn is_none_or ( self , f : impl FnOnce ( T ) -> bool ) -> bool {
674
672
match self {
675
673
None => true ,
Original file line number Diff line number Diff line change 12
12
#![ feature( let_chains) ]
13
13
#![ feature( trait_upcasting) ]
14
14
#![ feature( strict_overflow_ops) ]
15
- #![ feature( is_none_or) ]
16
15
// Configure clippy and other lints
17
16
#![ allow(
18
17
clippy:: collapsible_else_if,
You can’t perform that action at this time.
0 commit comments