about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-08-24 09:46:46 +0200
committerRalf Jung <post@ralfj.de>2024-08-24 14:38:50 +0200
commitec0e16a66571458dc5c296ccfa5e4d8bdcc2a2a8 (patch)
tree42a9b6669a511196c964869f338c625e88632b1f /library/std/src
parent0f6e1ae67854c3c44726e8376144c16b465fe7c6 (diff)
downloadrust-ec0e16a66571458dc5c296ccfa5e4d8bdcc2a2a8.tar.gz
rust-ec0e16a66571458dc5c296ccfa5e4d8bdcc2a2a8.zip
panicking: improve hint for Miri's RUST_BACKTRACE behavior
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/panicking.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/panicking.rs b/library/std/src/panicking.rs
index e818b448270..190eed94555 100644
--- a/library/std/src/panicking.rs
+++ b/library/std/src/panicking.rs
@@ -275,7 +275,7 @@ fn default_hook(info: &PanicHookInfo<'_>) {
                     if cfg!(miri) {
                         let _ = writeln!(
                             err,
-                            "note: in Miri, you may have to set `-Zmiri-env-forward=RUST_BACKTRACE` \
+                            "note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` \
                                 for the environment variable to have an effect"
                         );
                     }