diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-07 11:55:29 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-01-23 10:35:21 +0000 |
| commit | 3ddb54f1554c9f1eccc8d0e9315a78d2178ad5aa (patch) | |
| tree | eff819f5fac6a9c6595474841f435a9d4b5adf0b /compiler/rustc_driver/src/lib.rs | |
| parent | bcc8b05d5cf792d44b854a0097e9654021ad3177 (diff) | |
| download | rust-3ddb54f1554c9f1eccc8d0e9315a78d2178ad5aa.tar.gz rust-3ddb54f1554c9f1eccc8d0e9315a78d2178ad5aa.zip | |
Prefer queries over Compiler methods
Diffstat (limited to 'compiler/rustc_driver/src/lib.rs')
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index d00a68471bb..862931da009 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -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 { |
