Make dead code check a query.
This commit is contained in:
parent
312a7995e7
commit
4e7d47bb6c
5 changed files with 62 additions and 33 deletions
|
@ -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", || {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue