diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-06-19 13:11:18 +0200 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2024-06-20 20:31:32 +0200 |
| commit | bc12972bcd7fb93e515c14b9e1f514bc3d2683d8 (patch) | |
| tree | 8d496bedc9d219adf84f03bd844716760deeb209 /compiler/rustc_hir_analysis/src/lib.rs | |
| parent | cb8a7ea0ed866295e0f65725cea6662bea51971a (diff) | |
| download | rust-bc12972bcd7fb93e515c14b9e1f514bc3d2683d8.tar.gz rust-bc12972bcd7fb93e515c14b9e1f514bc3d2683d8.zip | |
Slightly refactor the dumping of HIR analysis data
Diffstat (limited to 'compiler/rustc_hir_analysis/src/lib.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/lib.rs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/compiler/rustc_hir_analysis/src/lib.rs b/compiler/rustc_hir_analysis/src/lib.rs index 1927359421d..6af4fdaea21 100644 --- a/compiler/rustc_hir_analysis/src/lib.rs +++ b/compiler/rustc_hir_analysis/src/lib.rs @@ -151,10 +151,6 @@ pub fn provide(providers: &mut Providers) { pub fn check_crate(tcx: TyCtxt<'_>) { let _prof_timer = tcx.sess.timer("type_check_crate"); - if tcx.features().rustc_attrs { - let _ = tcx.sess.time("outlives_testing", || outlives::test::test_inferred_outlives(tcx)); - } - tcx.sess.time("coherence_checking", || { tcx.hir().par_for_each_module(|module| { let _ = tcx.ensure().check_mod_type_wf(module); @@ -169,11 +165,9 @@ pub fn check_crate(tcx: TyCtxt<'_>) { }); if tcx.features().rustc_attrs { - let _ = tcx.sess.time("variance_testing", || variance::test::test_variance(tcx)); - } - - if tcx.features().rustc_attrs { - let _ = collect::test_opaque_hidden_types(tcx); + tcx.sess.time("outlives_dumping", || outlives::dump::inferred_outlives(tcx)); + tcx.sess.time("variance_dumping", || variance::dump::variances(tcx)); + collect::dump::opaque_hidden_types(tcx); } // Make sure we evaluate all static and (non-associated) const items, even if unused. |
