diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2025-07-26 00:47:33 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2025-07-26 21:21:04 +0000 |
| commit | a1f5a6d781d65949fe08c149a695d4cd926cc755 (patch) | |
| tree | 82dc8b6e3298e360d570bbafc367c243cfbc7533 /compiler/rustc_interface | |
| parent | a2320b25533df01d9b96707187b64e03595c9bee (diff) | |
| download | rust-a1f5a6d781d65949fe08c149a695d4cd926cc755.tar.gz rust-a1f5a6d781d65949fe08c149a695d4cd926cc755.zip | |
Perform check_private_in_public by module.
Diffstat (limited to 'compiler/rustc_interface')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 4 |
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| { |
