use slice::contains where applicable

This commit is contained in:
Yotam Ofek 2025-03-28 12:21:21 +00:00
parent e77a8f439c
commit 9ef35ddc0c
7 changed files with 16 additions and 15 deletions

View file

@ -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`.