diff options
| author | Bryanskiy <ivakin.kir@gmail.com> | 2023-04-13 15:16:22 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-05-05 17:33:10 +0300 |
| commit | cff85f22f5030fbe7266d272da74a9e76160523c (patch) | |
| tree | 05c4661bb8d97ec45d6d6e1bc82c5b4874189249 /compiler/rustc_resolve/src/effective_visibilities.rs | |
| parent | dd9a7bf848e412c81e3045245acbd5a01641a610 (diff) | |
| download | rust-cff85f22f5030fbe7266d272da74a9e76160523c.tar.gz rust-cff85f22f5030fbe7266d272da74a9e76160523c.zip | |
Populate effective visibilities in `rustc_privacy`
Diffstat (limited to 'compiler/rustc_resolve/src/effective_visibilities.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/effective_visibilities.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/effective_visibilities.rs b/compiler/rustc_resolve/src/effective_visibilities.rs index 87067189a77..7393bdb388a 100644 --- a/compiler/rustc_resolve/src/effective_visibilities.rs +++ b/compiler/rustc_resolve/src/effective_visibilities.rs @@ -199,7 +199,7 @@ impl<'r, 'a, 'tcx> EffectiveVisibilitiesVisitor<'r, 'a, 'tcx> { let tcx = self.r.tcx; self.changed |= self.import_effective_visibilities.update( binding, - nominal_vis, + Some(nominal_vis), || cheap_private_vis.unwrap_or_else(|| self.r.private_vis_import(binding)), inherited_eff_vis, parent_id.level(), @@ -213,7 +213,7 @@ impl<'r, 'a, 'tcx> EffectiveVisibilitiesVisitor<'r, 'a, 'tcx> { let tcx = self.r.tcx; self.changed |= self.def_effective_visibilities.update( def_id, - nominal_vis, + Some(nominal_vis), || cheap_private_vis.unwrap_or_else(|| self.r.private_vis_def(def_id)), inherited_eff_vis, parent_id.level(), |
