File tree 3 files changed +14
-0
lines changed
compiler/rustc_driver_impl/src
tests/run-make/pretty-print-with-dep-file
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,10 @@ fn run_compiler(
393
393
pretty:: print_after_hir_lowering( tcx, * ppm) ;
394
394
Ok ( ( ) )
395
395
} ) ?;
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( ( ) ) ) ;
396
400
} else {
397
401
let krate = queries. parse( ) ?. steal( ) ;
398
402
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