Skip to content

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 6a9558f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rls-rustc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(|_| ())
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 6a9558f

Please sign in to comment.