aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-02-09 11:32:50 +0100
committerPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-02-09 11:55:12 +0100
commit9762350b8cac09e8f6671c42edc5cc4398b33753 (patch)
treead5720b0cd5e5a2f0ddbd014f1a7d9417df15605
parent7f66312db45e3e157123108934f6cf0c71a1c235 (diff)
downloadgcc-9762350b8cac09e8f6671c42edc5cc4398b33753.zip
gcc-9762350b8cac09e8f6671c42edc5cc4398b33753.tar.gz
gcc-9762350b8cac09e8f6671c42edc5cc4398b33753.tar.bz2
cli: Update safety warning message
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>
-rw-r--r--gcc/rust/rust-session-manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index 22d5942..6966ccc 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -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);