Auto merge of #32073 - jseyfried:fix_another_trait_privacy_error, r=nikomatsakis
Fix incorrect trait privacy error This PR fixes #21670 by using the crate metadata instead of `ExternalExports` to determine if an external item is public. r? @nikomatsakis
This commit is contained in:
commit
ef3d051630
8 changed files with 22 additions and 33 deletions
|
|
@ -768,7 +768,6 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
|
|||
freevars,
|
||||
export_map,
|
||||
trait_map,
|
||||
external_exports,
|
||||
glob_map,
|
||||
} = time(time_passes,
|
||||
"resolution",
|
||||
|
|
@ -829,9 +828,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
|
|||
|
||||
analysis.access_levels =
|
||||
time(time_passes, "privacy checking", || {
|
||||
rustc_privacy::check_crate(tcx,
|
||||
&analysis.export_map,
|
||||
external_exports)
|
||||
rustc_privacy::check_crate(tcx, &analysis.export_map)
|
||||
});
|
||||
|
||||
// Do not move this check past lint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue