1
Fork 0

increase the accuracy of effective visibilities calculation

This commit is contained in:
Bryanskiy 2023-06-06 18:26:38 +03:00
parent 3572d7451d
commit 5e917a6039
4 changed files with 69 additions and 26 deletions

View file

@ -81,7 +81,7 @@ impl<'r, 'a, 'tcx> EffectiveVisibilitiesVisitor<'r, 'a, 'tcx> {
def_effective_visibilities: Default::default(),
import_effective_visibilities: Default::default(),
current_private_vis: Visibility::Restricted(CRATE_DEF_ID),
changed: false,
changed: true,
};
visitor.def_effective_visibilities.update_root();