mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
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.
This commit is contained in:
parent
535bc1d704
commit
cc68d8135b
1 changed files with 2 additions and 1 deletions
|
@ -247,8 +247,9 @@ You can use tool lints to allow or deny lints from your code, eg.:
|
|||
|
||||
pub fn main() {
|
||||
rustc_driver::init_rustc_env_logger();
|
||||
rustc_driver::install_ice_hook();
|
||||
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") {
|
||||
|
|
Loading…
Reference in a new issue