Skip to content

Commit 4a77a62

Browse files
committed
rustc_resolve: rename check_hidden_glob_reexports to lint_reexports
1 parent a9fb610 commit 4a77a62

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

compiler/rustc_resolve/src/imports.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,10 +634,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
634634
}
635635
}
636636

637-
pub(crate) fn check_hidden_glob_reexports(
638-
&mut self,
639-
exported_ambiguities: FxHashSet<NameBinding<'ra>>,
640-
) {
637+
pub(crate) fn lint_reexports(&mut self, exported_ambiguities: FxHashSet<NameBinding<'ra>>) {
641638
for module in self.arenas.local_modules().iter() {
642639
for (key, resolution) in self.resolutions(*module).borrow().iter() {
643640
let resolution = resolution.borrow();

compiler/rustc_resolve/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,9 +1775,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
17751775
let exported_ambiguities = self.tcx.sess.time("compute_effective_visibilities", || {
17761776
EffectiveVisibilitiesVisitor::compute_effective_visibilities(self, krate)
17771777
});
1778-
self.tcx.sess.time("check_hidden_glob_reexports", || {
1779-
self.check_hidden_glob_reexports(exported_ambiguities)
1780-
});
1778+
self.tcx.sess.time("lint_reexports", || self.lint_reexports(exported_ambiguities));
17811779
self.tcx
17821780
.sess
17831781
.time("finalize_macro_resolutions", || self.finalize_macro_resolutions(krate));

0 commit comments

Comments
 (0)