Suggested change
This commit is contained in:
parent
2ced474e80
commit
3c11944376
1 changed files with 5 additions and 4 deletions
|
|
@ -367,10 +367,11 @@ pub(super) fn specialization_graph_provider(
|
|||
}
|
||||
|
||||
let access_levels = tcx.privacy_access_levels(impl_def_id.krate);
|
||||
let id = tcx.hir().as_local_hir_id(impl_def_id).unwrap();
|
||||
if access_levels.is_exported(id) || access_levels.is_public(id) {
|
||||
for cause in &overlap.intercrate_ambiguity_causes {
|
||||
cause.add_intercrate_ambiguity_hint(&mut err);
|
||||
if let Some(id) = tcx.hir().as_local_hir_id(impl_def_id) {
|
||||
if access_levels.is_exported(id) || access_levels.is_public(id) {
|
||||
for cause in &overlap.intercrate_ambiguity_causes {
|
||||
cause.add_intercrate_ambiguity_hint(&mut err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue