use slice::contains
where applicable
This commit is contained in:
parent
e77a8f439c
commit
9ef35ddc0c
7 changed files with 16 additions and 15 deletions
|
@ -876,7 +876,7 @@ impl Span {
|
|||
self.ctxt()
|
||||
.outer_expn_data()
|
||||
.allow_internal_unstable
|
||||
.is_some_and(|features| features.iter().any(|&f| f == feature))
|
||||
.is_some_and(|features| features.contains(&feature))
|
||||
}
|
||||
|
||||
/// Checks if this span arises from a compiler desugaring of kind `kind`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue