Skip to content

Commit 722ae22

Browse files
committed
rewrite pretty-print-to-file to rmake
1 parent 2ffff79 commit 722ae22

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ run-make/jobserver-error/Makefile
8484
run-make/libs-through-symlinks/Makefile
8585
run-make/libtest-json/Makefile
8686
run-make/libtest-junit/Makefile
87-
run-make/libtest-padding/Makefile
8887
run-make/libtest-thread-limit/Makefile
8988
run-make/link-cfg/Makefile
9089
run-make/link-framework/Makefile
@@ -133,7 +132,6 @@ run-make/pgo-gen/Makefile
133132
run-make/pgo-indirect-call-promotion/Makefile
134133
run-make/pgo-use/Makefile
135134
run-make/pointer-auth-link-with-c/Makefile
136-
run-make/pretty-print-to-file/Makefile
137135
run-make/print-calling-conventions/Makefile
138136
run-make/print-target-list/Makefile
139137
run-make/profile/Makefile

tests/run-make/pretty-print-to-file/Makefile

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}

0 commit comments

Comments
 (0)