Skip to content

Commit

Permalink
Rollup merge of rust-lang#129501 - RalfJung:miri-rust-backtrace, r=No…
Browse files Browse the repository at this point in the history
…ratrieb

panicking: improve hint for Miri's RUST_BACKTRACE behavior

Should help with rust-lang/miri#3838
  • Loading branch information
matthiaskrgr authored Aug 24, 2024
2 parents 7d5cf38 + a6ea125 commit 0fe3746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
}
Expand Down

0 comments on commit 0fe3746

Please sign in to comment.