-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only generate miri backtraces if explicitly requested #49083
Conversation
@bors r+ |
📌 Commit 4133b16 has been approved by |
@bors: rollup |
…aelwoerister Only generate miri backtraces if explicitly requested fixes rust-lang#49072 fixes rust-lang#48888 r? @michaelwoerister
@@ -20,7 +20,7 @@ pub struct EvalError<'tcx> { | |||
|
|||
impl<'tcx> From<EvalErrorKind<'tcx>> for EvalError<'tcx> { | |||
fn from(kind: EvalErrorKind<'tcx>) -> Self { | |||
let backtrace = match env::var("RUST_BACKTRACE") { | |||
let backtrace = match env::var("MIRI_BACKTRACE") { | |||
Ok(ref val) if !val.is_empty() => Some(Backtrace::new_unresolved()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, it looks like backtrace will be generated even with RUST_BACKTRACE=0
. Is this okay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. This is not your regular backtrace, this is inside miri for debugging miri error sources
fixes #49072
fixes #48888
r? @michaelwoerister