We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85aec92 + d4914a7 commit 9541ce1Copy full SHA for 9541ce1
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