We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2693832 commit 8189bacCopy full SHA for 8189bac
compiler/rustc_trait_selection/src/traits/coherence.rs
@@ -408,7 +408,10 @@ fn negative_impl_exists<'cx, 'tcx>(
408
let tcx = infcx.tcx;
409
o.flip_polarity(tcx)
410
.as_ref()
411
- .map(|o| selcx.infcx().predicate_must_hold_modulo_regions(o))
+ .map(|o| {
412
+ // FIXME This isn't quite correct, regions should be included
413
+ selcx.infcx().predicate_must_hold_modulo_regions(o)
414
+ })
415
.unwrap_or(false)
416
}
417
0 commit comments