diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-01-29 21:10:41 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-02-01 13:11:03 +0100 |
| commit | 4e7d47bb6c91f6db5d043a152d11ab7528266d25 (patch) | |
| tree | 6b2e6ee3b86790ba76e3c98fceb366e91c5dc4f6 /compiler/rustc_interface/src | |
| parent | 312a7995e73e390646bc61920ffead7a640addc6 (diff) | |
| download | rust-4e7d47bb6c91f6db5d043a152d11ab7528266d25.tar.gz rust-4e7d47bb6c91f6db5d043a152d11ab7528266d25.zip | |
Make dead code check a query.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index be31eb89f1b..7a3d77466c5 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -999,7 +999,8 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { tcx.ensure().check_private_in_public(()); }, { - sess.time("death_checking", || rustc_passes::dead::check_crate(tcx)); + tcx.hir() + .par_for_each_module(|module| tcx.ensure().check_mod_deathness(module)); }, { sess.time("unused_lib_feature_checking", || { |
