From bf4a467cefb3605ec15002c275b3130991234dd0 Mon Sep 17 00:00:00 2001 From: Jason Olson Date: Sun, 15 Sep 2019 11:07:44 -0700 Subject: [PATCH] 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. --- src/driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver.rs b/src/driver.rs index 92f83f1a29e3..1b0ea2e769a2 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -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") {