This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
tests/run-make/pretty-print-to-file Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ run-make/jobserver-error/Makefile
8484run-make/libs-through-symlinks/Makefile
8585run-make/libtest-json/Makefile
8686run-make/libtest-junit/Makefile
87- run-make/libtest-padding/Makefile
8887run-make/libtest-thread-limit/Makefile
8988run-make/link-cfg/Makefile
9089run-make/link-framework/Makefile
@@ -133,7 +132,6 @@ run-make/pgo-gen/Makefile
133132run-make/pgo-indirect-call-promotion/Makefile
134133run-make/pgo-use/Makefile
135134run-make/pointer-auth-link-with-c/Makefile
136- run-make/pretty-print-to-file/Makefile
137135run-make/print-calling-conventions/Makefile
138136run-make/print-target-list/Makefile
139137run-make/profile/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // The "pretty-printer" of rustc translates source code into other formats,
2+ // which is useful for debugging. This test checks the "normal" version of
3+ // -Zunpretty, which should format the poorly formatted input.rs into a one-line
4+ // function identical to the one in input.pp.
5+ // See https://github.com/rust-lang/rust/commit/da25539c1ab295ec40261109557dd4526923928c
6+
7+ use run_make_support:: { diff, rustc} ;
8+
9+ fn main ( ) {
10+ rustc ( ) . output ( "input.out" ) . arg ( "-Zunpretty=normal" ) . input ( "input.rs" ) . run ( ) ;
11+ diff ( ) . expected_file ( "input.out" ) . actual_file ( "input.pp" ) . run ( ) ;
12+ }
You can’t perform that action at this time.
0 commit comments