about summary refs log tree commit diff
path: root/compiler/rustc_interface
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-08-02 01:59:11 +0000
committerbors <bors@rust-lang.org>2025-08-02 01:59:11 +0000
commitc23f07d8c56c51b5e634bda55daca2b073306340 (patch)
treeb86004d3a60ab801954ebb47481facbe7ef58f50 /compiler/rustc_interface
parent63f6845e570305a92eaf855897768617366164d6 (diff)
parent1b01decc1ca851e014b6951bdd7f2ac2f897adc9 (diff)
downloadrust-c23f07d8c56c51b5e634bda55daca2b073306340.tar.gz
rust-c23f07d8c56c51b5e634bda55daca2b073306340.zip
Auto merge of #144479 - cjgillot:incr-privacy-mod, r=petrochenkov
Perform check_private_in_public by module.

Based on https://github.com/rust-lang/rust/pull/116316
Diffstat (limited to 'compiler/rustc_interface')
-rw-r--r--compiler/rustc_interface/src/passes.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 83ac981429c..8dec8069bc7 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -1151,7 +1151,9 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) {
 
                 parallel!(
                     {
-                        tcx.ensure_ok().check_private_in_public(());
+                        tcx.par_hir_for_each_module(|module| {
+                            tcx.ensure_ok().check_private_in_public(module)
+                        })
                     },
                     {
                         tcx.par_hir_for_each_module(|module| {