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:
commit
b4c4913abb
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue