about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-06 21:56:28 +0100
committerGitHub <noreply@github.com>2025-02-06 21:56:28 +0100
commit79e5424e313cb6fc725f738a4ac1d3220932d3cd (patch)
treec3340df191c21a43c9d8dccec48dfda6ba6ac9ed /compiler/rustc_driver_impl/src
parent3eb1ef836eaece6dd52ce0b27f9983b8c6b20ee1 (diff)
parentb9b2c3affcc51e85d793f51875db067513642863 (diff)
downloadrust-79e5424e313cb6fc725f738a4ac1d3220932d3cd.tar.gz
rust-79e5424e313cb6fc725f738a4ac1d3220932d3cd.zip
Rollup merge of #136636 - bjorn3:error_cleanup, r=compiler-errors
Couple of minor cleanups to the diagnostic infrastructure
Diffstat (limited to 'compiler/rustc_driver_impl/src')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index d7f1357dc57..4c47ce93dd5 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -1024,7 +1024,7 @@ pub fn describe_flag_categories(early_dcx: &EarlyDiagCtxt, matches: &Matches) ->
     let wall = matches.opt_strs("W");
     if wall.iter().any(|x| *x == "all") {
         print_wall_help();
-        rustc_errors::FatalError.raise();
+        return true;
     }
 
     // Don't handle -W help here, because we might first load additional lints.