From: Owen Avery Date: Wed, 26 Apr 2023 12:42:36 +0000 (-0400) Subject: gccrs: Fix -frust-dump-* error messages X-Git-Tag: basepoints/gcc-15~2610 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b7ab6f2f26c78309597f998c768e4e539db75bb;p=thirdparty%2Fgcc.git gccrs: Fix -frust-dump-* error messages gcc/rust/ChangeLog: * rust-session-manager.cc (Session::enable_dump): Fix error messages. Signed-off-by: Owen Avery --- diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc index 25b56b726c39..c8d7b29229ca 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 %, " - "%, %, %, %," - " %, %, or %"); + "dump option was not given a name. choose %, %, " + "%, %, %, " + "%, %, %, %, " + "%, or %"); return false; } @@ -337,9 +338,10 @@ Session::enable_dump (std::string arg) { rust_error_at ( Location (), - "dump option %qs was unrecognised. choose %, %, " - "%, %, %, %," - " %, or %", + "dump option %qs was unrecognised. choose %, %, " + "%, %, %, " + "%, %, %, %, " + "%, or %", arg.c_str ()); return false; }