it's called RUSTC_CTFE_BACKTRACE now

This commit is contained in:
Ralf Jung
2019-08-12 08:25:31 +02:00
parent a5eb61a4ad
commit 7a9733929b
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
5aa3d9a7b5d3a46a7f158e8881146331a6bc9243
00ee1b47f42129a0a6e33510578fbcf07c1e5382
+4 -4
View File
@@ -92,11 +92,11 @@ fn init_late_loggers() {
}
}
// If `MIRI_BACKTRACE` is set and `RUST_CTFE_BACKTRACE` is not, set `RUST_CTFE_BACKTRACE`.
// Do this late, so we really only apply this to miri's errors.
// If `MIRI_BACKTRACE` is set and `RUSTC_CTFE_BACKTRACE` is not, set `RUSTC_CTFE_BACKTRACE`.
// Do this late, so we ideally only apply this to Miri's errors.
if let Ok(var) = env::var("MIRI_BACKTRACE") {
if env::var("RUST_CTFE_BACKTRACE") == Err(env::VarError::NotPresent) {
env::set_var("RUST_CTFE_BACKTRACE", &var);
if env::var("RUSTC_CTFE_BACKTRACE") == Err(env::VarError::NotPresent) {
env::set_var("RUSTC_CTFE_BACKTRACE", &var);
}
}
}