1
Fork 0

Perform coherence checking per impl.

This commit is contained in:
Camille GILLOT 2021-05-09 20:53:13 +02:00
parent 21e9336fe8
commit 0ff8c65d6f
18 changed files with 258 additions and 291 deletions

View file

@ -452,7 +452,7 @@ fn report_conflicting_impls(
match used_to_be_allowed {
None => {
let reported = if overlap.with_impl.is_local()
|| !tcx.orphan_check_crate(()).contains(&impl_def_id)
|| tcx.orphan_check_impl(impl_def_id).is_ok()
{
let err = struct_span_err!(tcx.sess, impl_span, E0119, "");
Some(decorate(