incr.comp.: Don't ignore dep-tracking during HirId validation.

This commit is contained in:
Michael Woerister 2023-04-05 16:21:50 +02:00
parent 6117c06306
commit 5f52a96b85

View File

@ -8,7 +8,6 @@ use rustc_middle::hir::nested_filter;
use rustc_middle::ty::TyCtxt; use rustc_middle::ty::TyCtxt;
pub fn check_crate(tcx: TyCtxt<'_>) { pub fn check_crate(tcx: TyCtxt<'_>) {
tcx.dep_graph.with_ignore(|| {
if tcx.sess.opts.unstable_opts.hir_stats { if tcx.sess.opts.unstable_opts.hir_stats {
crate::hir_stats::print_hir_stats(tcx); crate::hir_stats::print_hir_stats(tcx);
} }
@ -35,7 +34,6 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
tcx.sess.delay_span_bug(rustc_span::DUMMY_SP, &message); tcx.sess.delay_span_bug(rustc_span::DUMMY_SP, &message);
} }
} }
})
} }
struct HirIdValidator<'a, 'hir> { struct HirIdValidator<'a, 'hir> {