diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index e6102de18748..efbfc3796ae2 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -97,8 +97,6 @@ fn main() { cmd.env("RUST_BACKTRACE", "1"); } - cmd.env("RUSTC_BREAK_ON_ICE", "1"); - if let Ok(debuginfo_level) = env::var("RUSTC_DEBUGINFO_LEVEL") { cmd.arg(format!("-Cdebuginfo={}", debuginfo_level)); } diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 6323fa94ccfc..0704ff3ca9bc 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -917,7 +917,8 @@ impl<'a> Builder<'a> { PathBuf::from("/path/to/nowhere/rustdoc/not/required") }, ) - .env("RUSTC_ERROR_METADATA_DST", self.extended_error_dir()); + .env("RUSTC_ERROR_METADATA_DST", self.extended_error_dir()) + .env("RUSTC_BREAK_ON_ICE", "1"); if let Some(host_linker) = self.linker(compiler.host) { cargo.env("RUSTC_HOST_LINKER", host_linker);