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

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,