diff options
| author | bors <bors@rust-lang.org> | 2023-08-30 04:29:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-30 04:29:17 +0000 |
| commit | 82c2eb48ee275638b437fa2a044e9d44de0ca0c6 (patch) | |
| tree | e0235901ba1c0df333e5a19a0fecfc99a592a9bc /compiler/rustc_interface/src | |
| parent | d64c84562f634efde5eb5506942b6af293d8358d (diff) | |
| parent | 023b367037252e4aa1ceb3d394fa37e667fd3185 (diff) | |
| download | rust-82c2eb48ee275638b437fa2a044e9d44de0ca0c6.tar.gz rust-82c2eb48ee275638b437fa2a044e9d44de0ca0c6.zip | |
Auto merge of #114908 - cjgillot:no-let-under, r=compiler-errors
Do not compute unneeded query results. r? `@ghost`
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index f6cbbad6338..c8b1ba5694e 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -743,12 +743,11 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { rustc_passes::hir_id_validator::check_crate(tcx); let sess = tcx.sess; - let mut entry_point = None; sess.time("misc_checking_1", || { parallel!( { - entry_point = sess.time("looking_for_entry_point", || tcx.entry_fn(())); + sess.time("looking_for_entry_point", || tcx.ensure().entry_fn(())); sess.time("looking_for_derive_registrar", || { tcx.ensure().proc_macro_decls_static(()) @@ -863,7 +862,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> { // This check has to be run after all lints are done processing. We don't // define a lint filter, as all lint checks should have finished at this point. - sess.time("check_lint_expectations", || tcx.check_expectations(None)); + sess.time("check_lint_expectations", || tcx.ensure().check_expectations(None)); }); if sess.opts.unstable_opts.print_vtable_sizes { |
