Skip to content

Commit 4e83924

Browse files
committed
Remove extra negative_impl_exists check
1 parent b321742 commit 4e83924

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_trait_selection/src/traits/coherence.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,7 @@ fn implicit_negative<'cx, 'tcx>(
279279
predicate: p,
280280
})
281281
.chain(obligations)
282-
.find(|o| {
283-
loose_check(selcx, o) || tcx.features().negative_impls && negative_impl_exists(selcx, o)
284-
});
282+
.find(|o| loose_check(selcx, o));
285283
// FIXME: the call to `selcx.predicate_may_hold_fatal` above should be ported
286284
// to the canonical trait query form, `infcx.predicate_may_hold`, once
287285
// the new system supports intercrate mode (which coherence needs).

0 commit comments

Comments
 (0)