aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-04-26 08:42:36 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:34:14 +0100
commit8b7ab6f2f26c78309597f998c768e4e539db75bb (patch)
tree1202d8f9c45a59851023ec0779b596310c07101f /gcc/rust/rust-session-manager.cc
parentdd8fb58695f752b04acf3c934f9f0d33d0e0d75f (diff)
downloadgcc-8b7ab6f2f26c78309597f998c768e4e539db75bb.zip
gcc-8b7ab6f2f26c78309597f998c768e4e539db75bb.tar.gz
gcc-8b7ab6f2f26c78309597f998c768e4e539db75bb.tar.bz2
gccrs: Fix -frust-dump-* error messages
gcc/rust/ChangeLog: * rust-session-manager.cc (Session::enable_dump): Fix error messages. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
-rw-r--r--gcc/rust/rust-session-manager.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index 25b56b7..c8d7b29 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -283,9 +283,10 @@ Session::enable_dump (std::string arg)
{
rust_error_at (
Location (),
- "dump option was not given a name. choose %<lex%>, "
- "%<register_plugins%>, %<injection%>, %<expansion%>, %<resolution%>,"
- " %<target_options%>, %<hir%>, or %<all%>");
+ "dump option was not given a name. choose %<lex%>, %<ast-pretty%>, "
+ "%<ast-tokenstream%>, %<register_plugins%>, %<injection%>, "
+ "%<expansion%>, %<resolution%>, %<target_options%>, %<hir%>, "
+ "%<hir-pretty%>, or %<all%>");
return false;
}
@@ -337,9 +338,10 @@ Session::enable_dump (std::string arg)
{
rust_error_at (
Location (),
- "dump option %qs was unrecognised. choose %<lex%>, %<parse%>, "
- "%<register_plugins%>, %<injection%>, %<expansion%>, %<resolution%>,"
- " %<target_options%>, or %<hir%>",
+ "dump option %qs was unrecognised. choose %<lex%>, %<ast-pretty%>, "
+ "%<ast-tokenstream%>, %<register_plugins%>, %<injection%>, "
+ "%<expansion%>, %<resolution%>, %<target_options%>, %<hir%>, "
+ "%<hir-pretty%>, or %<all%>",
arg.c_str ());
return false;
}