We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.map_or(true, ...)
.is_none_or(...)
1 parent 942db67 commit d4914a7Copy full SHA for d4914a7
compiler/rustc_next_trait_solver/src/solve/eval_ctxt/canonical.rs
@@ -142,7 +142,7 @@ where
142
// Remove any trivial region constraints once we've resolved regions
143
external_constraints
144
.region_constraints
145
- .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));
146
147
let canonical = Canonicalizer::canonicalize_response(
148
self.delegate,
0 commit comments