Skip to content

Commit

Permalink
FIXME include regions too
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Jan 23, 2022
1 parent 2693832 commit 8189bac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/rustc_trait_selection/src/traits/coherence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,10 @@ fn negative_impl_exists<'cx, 'tcx>(
let tcx = infcx.tcx;
o.flip_polarity(tcx)
.as_ref()
.map(|o| selcx.infcx().predicate_must_hold_modulo_regions(o))
.map(|o| {
// FIXME This isn't quite correct, regions should be included
selcx.infcx().predicate_must_hold_modulo_regions(o)
})
.unwrap_or(false)
}

Expand Down

0 comments on commit 8189bac

Please sign in to comment.