1
Fork 0

Rollup merge of #136664 - WaffleLapkin:un-map_or-true, r=compiler-errors

replace one `.map_or(true, ...)` with `.is_none_or(...)`

Randomly found while going through some of my old branches.
This commit is contained in:
Matthias Krüger 2025-02-07 18:26:29 +01:00 committed by GitHub
commit b4c4913abb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -142,7 +142,7 @@ where
// Remove any trivial region constraints once we've resolved regions
external_constraints
.region_constraints
.retain(|outlives| outlives.0.as_region().map_or(true, |re| re != outlives.1));
.retain(|outlives| outlives.0.as_region().is_none_or(|re| re != outlives.1));
let canonical = Canonicalizer::canonicalize_response(
self.delegate,