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

Commit

Permalink
Adjust for upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Oct 1, 2020
1 parent db6a9e0 commit d4e2bd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rls-rustc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ pub fn run() -> Result<(), ()> {
};

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

#[derive(Default)]
Expand Down
1 change: 1 addition & 0 deletions rls/src/build/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ fn run_in_process(
&mut callbacks,
Some(Box::new(ReplacedFileLoader::new(changed))),
Some(Box::new(BufWriter(stderr))),
None,
)
})
}
Expand Down

0 comments on commit d4e2bd7

Please sign in to comment.