Update compiler/rustc_trait_selection/src/traits/coherence.rs

This commit is contained in:
Niko Matsakis 2022-03-17 16:51:30 -04:00 committed by GitHub
parent ba8b4a4f82
commit 89a00cc8ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -368,7 +368,6 @@ fn negative_impl_exists<'cx, 'tcx>(
}
// Try to prove a negative obligation exist for super predicates
// FIXME we should implement an `assemble_neg_candidates` fn
for o in util::elaborate_predicates(infcx.tcx, iter::once(o.predicate)) {
if resolve_negative_obligation(infcx, param_env, region_context, &o) {
return true;