Use Option::is_some_and
and Result::is_ok_and
in the compiler
This commit is contained in:
parent
70db836922
commit
fb0f74a8c9
87 changed files with 148 additions and 158 deletions
|
@ -754,7 +754,7 @@ impl Span {
|
|||
self.ctxt()
|
||||
.outer_expn_data()
|
||||
.allow_internal_unstable
|
||||
.map_or(false, |features| features.iter().any(|&f| f == feature))
|
||||
.is_some_and(|features| features.iter().any(|&f| f == feature))
|
||||
}
|
||||
|
||||
/// Checks if this span arises from a compiler desugaring of kind `kind`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue