about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/passes.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2025-07-26 00:47:33 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2025-07-26 21:21:04 +0000
commita1f5a6d781d65949fe08c149a695d4cd926cc755 (patch)
tree82dc8b6e3298e360d570bbafc367c243cfbc7533 /compiler/rustc_interface/src/passes.rs
parenta2320b25533df01d9b96707187b64e03595c9bee (diff)
downloadrust-a1f5a6d781d65949fe08c149a695d4cd926cc755.tar.gz
rust-a1f5a6d781d65949fe08c149a695d4cd926cc755.zip
Perform check_private_in_public by module.
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
-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 fb6897c7d89..aaabf7df42d 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -1147,7 +1147,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| {