Prefer queries over Compiler methods

This commit is contained in:
Oli Scherer
2022-12-07 11:55:29 +00:00
parent bcc8b05d5c
commit 3ddb54f155
2 changed files with 4 additions and 5 deletions

View File

@@ -296,9 +296,8 @@ fn run_compiler(
if let Some(ppm) = &sess.opts.pretty {
if ppm.needs_ast_map() {
let expanded_crate = queries.expansion()?.borrow().0.clone();
queries.global_ctxt()?.enter(|tcx| {
pretty::print_after_hir_lowering(tcx, &*expanded_crate, *ppm);
pretty::print_after_hir_lowering(tcx, *ppm);
Ok(())
})?;
} else {