Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Fix nightly breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Sep 15, 2019
1 parent 9c534aa commit 39d617b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions rls-rustc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ pub fn run() -> Result<(), ()> {
None => args,
};

rustc_driver::report_ices_to_stderr_if_any(|| {
run_compiler(&args, &mut shim_calls, file_loader, None)
})
.map(|_| ())
.map_err(|_| ())
rustc_driver::install_ice_hook();
rustc_driver::catch_fatal_errors(|| run_compiler(&args, &mut shim_calls, file_loader, None))
.map(|_| ())
.map_err(|_| ())
}

#[derive(Default)]
Expand Down
2 changes: 1 addition & 1 deletion rls/src/build/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ fn run_in_process(
let result = std::panic::catch_unwind({
let stderr = Arc::clone(&stderr);
|| {
rustc_driver::report_ices_to_stderr_if_any(move || {
rustc_driver::catch_fatal_errors(move || {
// Replace stderr so we catch most errors.
run_compiler(
&args,
Expand Down

0 comments on commit 39d617b

Please sign in to comment.