From 7174ec22cfc05d7e75678a1362ccfcf89b351b71 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 2 Jan 2022 14:24:11 -0800 Subject: [PATCH] Exit nonzero on rustc -Wall --- compiler/rustc_driver/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index 12e0b7a4977..3531e8f9a81 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -1047,7 +1047,7 @@ pub fn handle_options(args: &[String]) -> Option { let wall = matches.opt_strs("W"); if wall.iter().any(|x| *x == "all") { print_wall_help(); - return None; + rustc_errors::FatalError.raise(); } // Don't handle -W help here, because we might first load plugins.