Skip to content

Commit 60b0388

Browse files
committed
Merge from rustc
2 parents 93066ae + a45b713 commit 60b0388

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/bin/miri.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,10 @@ fn main() {
288288
// (`install_ice_hook` might change `RUST_BACKTRACE`.)
289289
let env_snapshot = env::vars_os().collect::<Vec<_>>();
290290

291-
// Earliest rustc setup.
292-
rustc_driver::install_ice_hook();
293-
294291
// If the environment asks us to actually be rustc, then do that.
295292
if let Some(crate_kind) = env::var_os("MIRI_BE_RUSTC") {
293+
// Earliest rustc setup.
294+
rustc_driver::install_ice_hook(rustc_driver::DEFAULT_BUG_REPORT_URL, |_| ());
296295
rustc_driver::init_rustc_env_logger();
297296

298297
let target_crate = if crate_kind == "target" {
@@ -311,6 +310,9 @@ fn main() {
311310
)
312311
}
313312

313+
// Add an ICE bug report hook.
314+
rustc_driver::install_ice_hook("https://github.com/rust-lang/miri/issues/new", |_| ());
315+
314316
// Init loggers the Miri way.
315317
init_early_loggers();
316318

0 commit comments

Comments
 (0)