diff --git a/rls-rustc/src/lib.rs b/rls-rustc/src/lib.rs index 3d497cd598c..f847513b59b 100644 --- a/rls-rustc/src/lib.rs +++ b/rls-rustc/src/lib.rs @@ -72,7 +72,8 @@ pub fn run() -> Result<(), ()> { None => args, }; - rustc_driver::report_ices_to_stderr_if_any(|| { + rustc_driver::install_ice_hook(); + rustc_driver::catch_fatal_errors(|| { run_compiler(&args, &mut shim_calls, file_loader, None) }) .map(|_| ())