File tree 3 files changed +12
-7
lines changed
tests/run-make/pretty-print-to-file
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
84
84
run-make/libs-through-symlinks/Makefile
85
85
run-make/libtest-json/Makefile
86
86
run-make/libtest-junit/Makefile
87
- run-make/libtest-padding/Makefile
88
87
run-make/libtest-thread-limit/Makefile
89
88
run-make/link-cfg/Makefile
90
89
run-make/link-framework/Makefile
@@ -133,7 +132,6 @@ run-make/pgo-gen/Makefile
133
132
run-make/pgo-indirect-call-promotion/Makefile
134
133
run-make/pgo-use/Makefile
135
134
run-make/pointer-auth-link-with-c/Makefile
136
- run-make/pretty-print-to-file/Makefile
137
135
run-make/print-calling-conventions/Makefile
138
136
run-make/print-target-list/Makefile
139
137
run-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