Skip to content

Commit 8189bac

Browse files
committed
FIXME include regions too
1 parent 2693832 commit 8189bac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_trait_selection/src/traits/coherence.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ fn negative_impl_exists<'cx, 'tcx>(
408408
let tcx = infcx.tcx;
409409
o.flip_polarity(tcx)
410410
.as_ref()
411-
.map(|o| selcx.infcx().predicate_must_hold_modulo_regions(o))
411+
.map(|o| {
412+
// FIXME This isn't quite correct, regions should be included
413+
selcx.infcx().predicate_must_hold_modulo_regions(o)
414+
})
412415
.unwrap_or(false)
413416
}
414417

0 commit comments

Comments
 (0)