Skip to content

Commit 6a9558f

Browse files
committed
Fix nightly breakage
Caused by rust-lang/rust#60584
1 parent 9c534aa commit 6a9558f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rls-rustc/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ pub fn run() -> Result<(), ()> {
7272
None => args,
7373
};
7474

75-
rustc_driver::report_ices_to_stderr_if_any(|| {
75+
rustc_driver::install_ice_hook();
76+
rustc_driver::catch_fatal_errors(|| {
7677
run_compiler(&args, &mut shim_calls, file_loader, None)
7778
})
7879
.map(|_| ())

rls/src/build/rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ fn run_in_process(
198198
let result = std::panic::catch_unwind({
199199
let stderr = Arc::clone(&stderr);
200200
|| {
201-
rustc_driver::report_ices_to_stderr_if_any(move || {
201+
rustc_driver::catch_fatal_errors(move || {
202202
// Replace stderr so we catch most errors.
203203
run_compiler(
204204
&args,

0 commit comments

Comments
 (0)