Skip to content

Commit cc68d81

Browse files
committed
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.
1 parent 535bc1d commit cc68d81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/driver.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,9 @@ You can use tool lints to allow or deny lints from your code, eg.:
247247

248248
pub fn main() {
249249
rustc_driver::init_rustc_env_logger();
250+
rustc_driver::install_ice_hook();
250251
exit(
251-
rustc_driver::report_ices_to_stderr_if_any(move || {
252+
rustc_driver::catch_fatal_errors(move || {
252253
use std::env;
253254

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

0 commit comments

Comments
 (0)