about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-05 15:09:15 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-06 17:29:15 +0000
commit8a0adec05bf99d229e33545ba16c65c210e40142 (patch)
tree2ed1aef18eefac28a2f785d605e580c56d507ba3 /compiler/rustc_driver_impl/src
parent9a833de62a1de598ea54ad0b8ac01369f8d23c85 (diff)
downloadrust-8a0adec05bf99d229e33545ba16c65c210e40142.tar.gz
rust-8a0adec05bf99d229e33545ba16c65c210e40142.zip
Avoid manually producing FatalError in a couple of places
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 6ea14d15c14..370aba413ed 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.