]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cli: Update safety warning message
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 9 Feb 2023 10:32:50 +0000 (11:32 +0100)
committerPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 9 Feb 2023 10:55:12 +0000 (11:55 +0100)
The compiler's warning message about the safety flag did not match
cargo-gccrs environment variable name anymore.

gcc/rust/ChangeLog:

* rust-session-manager.cc (Session::compile_crate): Update the
environment variable name.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/rust-session-manager.cc

index 22d59423220bfc97737977018f86a86dce1557f4..6966ccc3de36139b0cd756c8ea2f81a2919a0d30 100644 (file)
@@ -447,7 +447,7 @@ Session::compile_crate (const char *filename)
       "defining the following environment variable (any value will "
       "do)\n\nGCCRS_INCOMPLETE_AND_EXPERIMENTAL_COMPILER_DO_NOT_USE\n\nFor "
       "cargo-gccrs, this means passing\n\n"
-      "GCCRS_EXTRA_FLAGS=\"-frust-incomplete-and-experimental-compiler-do-not-"
+      "GCCRS_EXTRA_ARGS=\"-frust-incomplete-and-experimental-compiler-do-not-"
       "use\"\n\nas an environment variable.");
 
   RAIIFile file_wrap (filename);