Only generate miri backtraces if explicitly requested
This commit is contained in:
parent
a7170b0412
commit
4133b16036
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue