Perform coherence checking per impl.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user