Skip to content

Commit e9c797b

Browse files
committed
Auto merge of #2878 - RalfJung:rustup, r=RalfJung
Rustup
2 parents fd7b0b7 + 60b0388 commit e9c797b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
74c4821045c68d42bb8b8a7c998bdb5c2a72bd0d
1+
c4190f2d3a46a59f435f7b42f58bc22b2f4d6917

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)