Skip to content

Commit 74c4318

Browse files
committed
Move FIXME text to the right place
1 parent 4e83924 commit 74c4318

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_trait_selection/src/traits/coherence.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@ fn implicit_negative<'cx, 'tcx>(
280280
})
281281
.chain(obligations)
282282
.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).
286283

287284
if let Some(failing_obligation) = opt_failing_obligation {
288285
debug!("overlap: obligation unsatisfiable {:?}", failing_obligation);
@@ -361,6 +358,9 @@ fn loose_check<'cx, 'tcx>(
361358
selcx: &mut SelectionContext<'cx, 'tcx>,
362359
o: &PredicateObligation<'tcx>,
363360
) -> 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).
364364
!selcx.predicate_may_hold_fatal(o)
365365
}
366366

0 commit comments

Comments
 (0)