diff options
| author | Urgau <urgau@numericable.fr> | 2023-08-04 19:36:57 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2023-08-04 20:13:40 +0200 |
| commit | 8229d8e251bf365a1073decd334465045d81b47e (patch) | |
| tree | 5f49368690dbe264063a0c5471226178d6aa72e0 /compiler/rustc_driver_impl/src | |
| parent | c435af0d5c47a333c7cb7f359f3586d5c9dab3ab (diff) | |
| download | rust-8229d8e251bf365a1073decd334465045d81b47e.tar.gz rust-8229d8e251bf365a1073decd334465045d81b47e.zip | |
Fix missing dependency file with -Zunpretty
Diffstat (limited to 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 8f8b9eaa274..3f640977e5d 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -393,6 +393,10 @@ fn run_compiler( pretty::print_after_hir_lowering(tcx, *ppm); Ok(()) })?; + + // Make sure the `output_filenames` query is run for its side + // effects of writing the dep-info and reporting errors. + queries.global_ctxt()?.enter(|tcx| tcx.output_filenames(())); } else { let krate = queries.parse()?.steal(); pretty::print_after_parsing(sess, &krate, *ppm); |
