about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-03-06 10:56:53 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-03-06 11:26:29 +0000
commitc90fc105cba334c37b2773a054d4f234b501b481 (patch)
tree42d55952dce82e9ea6e666d28628047f576085d4 /compiler/rustc_driver_impl/src
parentb7e2b049f3ef7e082af832fa53ab6af0a45baa62 (diff)
downloadrust-c90fc105cba334c37b2773a054d4f234b501b481.tar.gz
rust-c90fc105cba334c37b2773a054d4f234b501b481.zip
Querify early_lint_checks.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index 464ddae476a..e321a9847ba 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -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(())
                     })?;