We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51158cc commit 3082273Copy full SHA for 3082273
src/driver.rs
@@ -296,7 +296,7 @@ pub fn main() {
296
rustc_driver::init_rustc_env_logger();
297
lazy_static::initialize(&ICE_HOOK);
298
exit(
299
- rustc_driver::catch_fatal_errors(move || {
+ rustc_driver::catch_with_exit_code(move || {
300
let mut orig_args: Vec<String> = env::args().collect();
301
302
if orig_args.iter().any(|a| a == "--version" || a == "-V") {
@@ -411,7 +411,5 @@ pub fn main() {
411
if clippy_enabled { &mut clippy } else { &mut default };
412
rustc_driver::run_compiler(&args, callbacks, None, None)
413
})
414
- .and_then(|result| result)
415
- .is_err() as i32,
416
)
417
}
0 commit comments