about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-03-06 15:41:27 +0100
committerGitHub <noreply@github.com>2022-03-06 15:41:27 +0100
commitb7ccab4d401928c755f6876fea5d31c8e0d0fc49 (patch)
tree66c5e082fac1a92474f504d862b88f59fb394ade
parent5f08cb9f2f3231953eca65bc0de812e29ed7f5f4 (diff)
parent1d64b8587fb58a39c8a1d47eecdd5a85884b96a3 (diff)
downloadrust-b7ccab4d401928c755f6876fea5d31c8e0d0fc49.tar.gz
rust-b7ccab4d401928c755f6876fea5d31c8e0d0fc49.zip
Rollup merge of #94669 - Alexendoo:unpretty-help, r=tmiasko
Update -Z unpretty error message

Adds `thir-tree`, removes `everybody_loops` (removed in #93913)
-rw-r--r--compiler/rustc_session/src/config.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs
index 5f8aec80bcc..221dc86c1d4 100644
--- a/compiler/rustc_session/src/config.rs
+++ b/compiler/rustc_session/src/config.rs
@@ -2628,11 +2628,10 @@ fn parse_pretty(debugging_opts: &DebuggingOptions, efmt: ErrorOutputType) -> Opt
         name => early_error(
             efmt,
             &format!(
-                "argument to `unpretty` must be one of `normal`, \
-                            `expanded`, `identified`, `expanded,identified`, \
-                            `expanded,hygiene`, `everybody_loops`, \
+                "argument to `unpretty` must be one of `normal`, `identified`, \
+                            `expanded`, `expanded,identified`, `expanded,hygiene`, \
                             `ast-tree`, `ast-tree,expanded`, `hir`, `hir,identified`, \
-                            `hir,typed`, `hir-tree`, `mir` or `mir-cfg`; got {}",
+                            `hir,typed`, `hir-tree`, `thir-tree`, `mir` or `mir-cfg`; got {}",
                 name
             ),
         ),