Skip to content

Commit

Permalink
Auto merge of #4545 - jolson88:fix-ice-reporting, r=phansch
Browse files Browse the repository at this point in the history
Changes to catch_fatal_errors in rustc driver

A [recent PR](https://github.com/rust-lang/rust/pull/60584/files#diff-707a0eda6b2f1a0537abc3d23133748cL1151) changed the function name from `report_ices_to_stderr_if_any` to `catch_fatal_errors`. This PR changes to using the new function name.

changelog: none
  • Loading branch information
bors committed Sep 16, 2019
2 parents 535bc1d + bf4a467 commit 388f53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ You can use tool lints to allow or deny lints from your code, eg.:
pub fn main() {
rustc_driver::init_rustc_env_logger();
exit(
rustc_driver::report_ices_to_stderr_if_any(move || {
rustc_driver::catch_fatal_errors(move || {
use std::env;

if std::env::args().any(|a| a == "--version" || a == "-V") {
Expand Down

0 comments on commit 388f53d

Please sign in to comment.