File tree 5 files changed +2
-7
lines changed
rust-analyzer/crates/hir-ty/src
5 files changed +2
-7
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,
Original file line number Diff line number Diff line change @@ -1462,7 +1462,7 @@ fn generic_args_sans_defaults<'ga>(
1462
1462
// otherwise, if the arg is equal to the param default, hide it (unless the
1463
1463
// default is an error which can happen for the trait Self type)
1464
1464
#[ allow( unstable_name_collisions) ]
1465
- default_parameters. get ( i) . is_none_or ( |default_parameter| {
1465
+ IsNoneOr :: is_none_or ( default_parameters. get ( i) , |default_parameter| {
1466
1466
// !is_err(default_parameter.skip_binders())
1467
1467
// &&
1468
1468
arg != & default_parameter. clone ( ) . substitute ( Interner , & parameters)
You can’t perform that action at this time.
0 commit comments