File tree 1 file changed +1
-11
lines changed
compiler/rustc_trait_selection/src/traits
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ fn implicit_negative<'cx, 'tcx>(
287
287
predicate : p,
288
288
} )
289
289
. chain ( obligations)
290
- . find ( |o| loose_check ( selcx, o) ) ;
290
+ . find ( |o| ! selcx. predicate_may_hold_fatal ( o) ) ;
291
291
292
292
if let Some ( failing_obligation) = opt_failing_obligation {
293
293
debug ! ( "overlap: obligation unsatisfiable {:?}" , failing_obligation) ;
@@ -363,16 +363,6 @@ fn negative_impl<'cx, 'tcx>(
363
363
} )
364
364
}
365
365
366
- fn loose_check < ' cx , ' tcx > (
367
- selcx : & mut SelectionContext < ' cx , ' tcx > ,
368
- o : & PredicateObligation < ' tcx > ,
369
- ) -> bool {
370
- // FIXME: the call to `selcx.predicate_may_hold_fatal` below should be ported
371
- // to the canonical trait query form, `infcx.predicate_may_hold`, once
372
- // the new system supports intercrate mode (which coherence needs).
373
- !selcx. predicate_may_hold_fatal ( o)
374
- }
375
-
376
366
fn negative_impl_exists < ' cx , ' tcx > (
377
367
selcx : & SelectionContext < ' cx , ' tcx > ,
378
368
param_env : ty:: ParamEnv < ' tcx > ,
You can’t perform that action at this time.
0 commit comments