File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
compiler/rustc_driver_impl/src
tests/run-make/pretty-print-with-dep-file Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,10 @@ fn run_compiler(
393393 pretty:: print_after_hir_lowering( tcx, * ppm) ;
394394 Ok ( ( ) )
395395 } ) ?;
396+
397+ // Make sure the `output_filenames` query is run for its side
398+ // effects of writing the dep-info and reporting errors.
399+ queries. global_ctxt( ) ?. enter( |tcx| tcx. output_filenames( ( ) ) ) ;
396400 } else {
397401 let krate = queries. parse( ) ?. steal( ) ;
398402 pretty:: print_after_parsing( sess, & krate, * ppm) ;
Original file line number Diff line number Diff line change 1+ include ../tools.mk
2+
3+ all :
4+ $(RUSTC ) --emit=dep-info -Zunpretty=expanded with-dep.rs
5+ $(CGREP ) " with-dep.rs" < $(TMPDIR ) /with-dep.d
6+ -rm $(TMPDIR ) /with-dep.d
7+
8+ $(RUSTC) --emit=dep-info -Zunpretty=normal with-dep.rs
9+ ! test -f $(TMPDIR)/with-dep.d
Original file line number Diff line number Diff line change 1+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments