about summary refs log tree commit diff
path: root/compiler/rustc_driver
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-01-23 10:25:51 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-01-23 10:35:21 +0000
commitbcc8b05d5cf792d44b854a0097e9654021ad3177 (patch)
treec680b8fa18cac9899c1ebd4c6a0718762e3c78eb /compiler/rustc_driver
parentabee6137f70c8293078c03919fda68f0a5b9ca1d (diff)
downloadrust-bcc8b05d5cf792d44b854a0097e9654021ad3177.tar.gz
rust-bcc8b05d5cf792d44b854a0097e9654021ad3177.zip
Make `output_filenames` a real query
Diffstat (limited to 'compiler/rustc_driver')
-rw-r--r--compiler/rustc_driver/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
index f50ad0137b8..d00a68471bb 100644
--- a/compiler/rustc_driver/src/lib.rs
+++ b/compiler/rustc_driver/src/lib.rs
@@ -333,6 +333,8 @@ fn run_compiler(
                 return early_exit();
             }
 
+            queries.global_ctxt()?.enter(|tcx| tcx.output_filenames(()));
+
             if sess.opts.output_types.contains_key(&OutputType::DepInfo)
                 && sess.opts.output_types.len() == 1
             {