[gcc/devel/rust/master] cli: Update safety warning message

Thomas Schwinge tschwinge@gcc.gnu.org
Sat Feb 11 15:30:37 GMT 2023


https://gcc.gnu.org/g:9762350b8cac09e8f6671c42edc5cc4398b33753

commit 9762350b8cac09e8f6671c42edc5cc4398b33753
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Thu Feb 9 11:32:50 2023 +0100

    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>

Diff:
---
 gcc/rust/rust-session-manager.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index 22d59423220..6966ccc3de3 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);


More information about the Gcc-cvs mailing list