Skip to content

Commit

Permalink
Remove extra negative_impl_exists check
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Feb 14, 2022
1 parent b321742 commit 4e83924
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/rustc_trait_selection/src/traits/coherence.rs
Expand Up @@ -279,9 +279,7 @@ fn implicit_negative<'cx, 'tcx>(
predicate: p,
})
.chain(obligations)
.find(|o| {
loose_check(selcx, o) || tcx.features().negative_impls && negative_impl_exists(selcx, o)
});
.find(|o| loose_check(selcx, o));
// FIXME: the call to `selcx.predicate_may_hold_fatal` above should be ported
// to the canonical trait query form, `infcx.predicate_may_hold`, once
// the new system supports intercrate mode (which coherence needs).
Expand Down

0 comments on commit 4e83924

Please sign in to comment.