From a6ea125cb0eaf7a41bb7b92d3826f7896b9f6e00 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 24 Aug 2024 09:46:46 +0200 Subject: [PATCH] panicking: improve hint for Miri's RUST_BACKTRACE behavior --- std/src/panicking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/src/panicking.rs b/std/src/panicking.rs index e818b448270dd..190eed94555ba 100644 --- a/std/src/panicking.rs +++ b/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" ); }