Skip to content

Commit

Permalink
Only generate miri backtraces if explicitly requested
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Mar 16, 2018
1 parent a7170b0 commit 4133b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/mir/interpret/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
_ => None
};
Expand Down

0 comments on commit 4133b16

Please sign in to comment.