Use panic::set_hook to print the ICE message

This commit is contained in:
Jonas Schievink
2019-05-06 13:47:58 +02:00
parent 19a38de68a
commit a8926a5e9c
5 changed files with 72 additions and 51 deletions

View File

@@ -453,7 +453,7 @@ where R: 'static + Send,
// First, parse the crate and extract all relevant information.
info!("starting to run rustc");
let result = rustc_driver::report_ices_to_stderr_if_any(move || {
let result = rustc_driver::catch_fatal_errors(move || {
let crate_name = options.crate_name.clone();
let crate_version = options.crate_version.clone();
let (mut krate, renderinfo, renderopts) = core::run_core(options);