From 23bbd65d968ef385fa7a7cd90ea8252bd78081b1 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Thu, 25 Mar 2021 15:48:21 -0400 Subject: Remove unstable `--pretty` flag It doesn't do anything `--unpretty` doesn't, and due to a bug, also didn't show up in `--help`. I don't think there's any reason to keep it around, I haven't seen anyone using it. --- src/test/pretty/block-comment-wchar.pp | 2 +- src/test/pretty/block-comment-wchar.rs | 2 +- src/test/run-make-fulldeps/pretty-expanded/Makefile | 3 +-- src/test/run-make-fulldeps/pretty-print-to-file/Makefile | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/test') diff --git a/src/test/pretty/block-comment-wchar.pp b/src/test/pretty/block-comment-wchar.pp index 2bfcdd75e15..213fe1637c1 100644 --- a/src/test/pretty/block-comment-wchar.pp +++ b/src/test/pretty/block-comment-wchar.pp @@ -1,6 +1,6 @@ // This is meant as a test case for Issue 3961. // -// Test via: rustc --pretty normal src/test/pretty/block-comment-wchar.rs +// Test via: rustc -Zunpretty normal src/test/pretty/block-comment-wchar.rs // ignore-tidy-cr // ignore-tidy-tab // pp-exact:block-comment-wchar.pp diff --git a/src/test/pretty/block-comment-wchar.rs b/src/test/pretty/block-comment-wchar.rs index 93373c5da65..ed82cbbd8cf 100644 --- a/src/test/pretty/block-comment-wchar.rs +++ b/src/test/pretty/block-comment-wchar.rs @@ -1,6 +1,6 @@ // This is meant as a test case for Issue 3961. // -// Test via: rustc --pretty normal src/test/pretty/block-comment-wchar.rs +// Test via: rustc -Zunpretty normal src/test/pretty/block-comment-wchar.rs // ignore-tidy-cr // ignore-tidy-tab // pp-exact:block-comment-wchar.pp diff --git a/src/test/run-make-fulldeps/pretty-expanded/Makefile b/src/test/run-make-fulldeps/pretty-expanded/Makefile index 7a8dc8d871c..e721c5afdd7 100644 --- a/src/test/run-make-fulldeps/pretty-expanded/Makefile +++ b/src/test/run-make-fulldeps/pretty-expanded/Makefile @@ -1,5 +1,4 @@ -include ../tools.mk all: - $(RUSTC) -o $(TMPDIR)/input.expanded.rs -Z unstable-options \ - --pretty=expanded input.rs + $(RUSTC) -o $(TMPDIR)/input.expanded.rs -Zunpretty=expanded input.rs diff --git a/src/test/run-make-fulldeps/pretty-print-to-file/Makefile b/src/test/run-make-fulldeps/pretty-print-to-file/Makefile index 8909dee11f0..b224c52fcad 100644 --- a/src/test/run-make-fulldeps/pretty-print-to-file/Makefile +++ b/src/test/run-make-fulldeps/pretty-print-to-file/Makefile @@ -1,5 +1,5 @@ -include ../tools.mk all: - $(RUSTC) -o $(TMPDIR)/input.out --pretty=normal -Z unstable-options input.rs + $(RUSTC) -o $(TMPDIR)/input.out -Zunpretty=normal input.rs diff -u $(TMPDIR)/input.out input.pp -- cgit 1.4.1-3-g733a5