Perform coherence checking per impl.
This commit is contained in:
parent
21e9336fe8
commit
0ff8c65d6f
18 changed files with 258 additions and 291 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue