]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Fix -frust-dump-* error messages
authorOwen Avery <powerboat9.gamer@gmail.com>
Wed, 26 Apr 2023 12:42:36 +0000 (08:42 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:34:14 +0000 (18:34 +0100)
gcc/rust/ChangeLog:

* rust-session-manager.cc
(Session::enable_dump): Fix error messages.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/rust-session-manager.cc

index 25b56b726c390ccc9e4a9c900b297b7f385ef049..c8d7b29229ca32a8268167d8eac0d84aba6aa9fe 100644 (file)
@@ -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;
     }