diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-03-11 15:43:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-11 15:43:15 +0100 |
| commit | df50001c7de485b31cc4ea3c5100ac090e470c7c (patch) | |
| tree | de137e747189be70c479f028dd576d1067ab9090 /compiler/rustc_driver_impl/src/lib.rs | |
| parent | d7372a17872a67bf136426780561bd41783dfdde (diff) | |
| parent | c90fc105cba334c37b2773a054d4f234b501b481 (diff) | |
| download | rust-df50001c7de485b31cc4ea3c5100ac090e470c7c.tar.gz rust-df50001c7de485b31cc4ea3c5100ac090e470c7c.zip | |
Rollup merge of #108806 - cjgillot:query-lints, r=davidtwco
Querify register_tools and post-expansion early lints The 2 extra queries correspond to code that happen before and after macro expansion, and don't need the resolver to exist.
Diffstat (limited to 'compiler/rustc_driver_impl/src/lib.rs')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 1 |
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(()) })?; |
