File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -286,11 +286,10 @@ fn main() {
286
286
// (`install_ice_hook` might change `RUST_BACKTRACE`.)
287
287
let env_snapshot = env:: vars_os ( ) . collect :: < Vec < _ > > ( ) ;
288
288
289
- // Earliest rustc setup.
290
- rustc_driver:: install_ice_hook ( ) ;
291
-
292
289
// If the environment asks us to actually be rustc, then do that.
293
290
if let Some ( crate_kind) = env:: var_os ( "MIRI_BE_RUSTC" ) {
291
+ // Earliest rustc setup.
292
+ rustc_driver:: install_ice_hook ( rustc_driver:: DEFAULT_BUG_REPORT_URL , |_| ( ) ) ;
294
293
rustc_driver:: init_rustc_env_logger ( ) ;
295
294
296
295
let target_crate = if crate_kind == "target" {
@@ -309,6 +308,9 @@ fn main() {
309
308
)
310
309
}
311
310
311
+ // Add an ICE bug report hook.
312
+ rustc_driver:: install_ice_hook ( "https://github.com/rust-lang/miri/issues/new" , |_| ( ) ) ;
313
+
312
314
// Init loggers the Miri way.
313
315
init_early_loggers ( ) ;
314
316
You can’t perform that action at this time.
0 commit comments