1
Fork 0

Querify early_lint_checks.

This commit is contained in:
Camille GILLOT 2023-03-06 10:56:53 +00:00
parent b7e2b049f3
commit c90fc105cb
7 changed files with 38 additions and 19 deletions

View file

@ -331,6 +331,7 @@ fn run_compiler(
if let Some(ppm) = &sess.opts.pretty {
if ppm.needs_ast_map() {
queries.global_ctxt()?.enter(|tcx| {
tcx.ensure().early_lint_checks(());
pretty::print_after_hir_lowering(tcx, *ppm);
Ok(())
})?;