File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_trait_selection/src/traits Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -280,9 +280,6 @@ fn implicit_negative<'cx, 'tcx>(
280
280
} )
281
281
. chain ( obligations)
282
282
. find ( |o| loose_check ( selcx, o) ) ;
283
- // FIXME: the call to `selcx.predicate_may_hold_fatal` above should be ported
284
- // to the canonical trait query form, `infcx.predicate_may_hold`, once
285
- // the new system supports intercrate mode (which coherence needs).
286
283
287
284
if let Some ( failing_obligation) = opt_failing_obligation {
288
285
debug ! ( "overlap: obligation unsatisfiable {:?}" , failing_obligation) ;
@@ -361,6 +358,9 @@ fn loose_check<'cx, 'tcx>(
361
358
selcx : & mut SelectionContext < ' cx , ' tcx > ,
362
359
o : & PredicateObligation < ' tcx > ,
363
360
) -> bool {
361
+ // FIXME: the call to `selcx.predicate_may_hold_fatal` below should be ported
362
+ // to the canonical trait query form, `infcx.predicate_may_hold`, once
363
+ // the new system supports intercrate mode (which coherence needs).
364
364
!selcx. predicate_may_hold_fatal ( o)
365
365
}
366
366
You can’t perform that action at this time.
0 commit comments