]> git.lizzy.rs Git - rust.git/commitdiff
Exit nonzero on rustc -Wall
authorDavid Tolnay <dtolnay@gmail.com>
Sun, 2 Jan 2022 22:24:11 +0000 (14:24 -0800)
committerDavid Tolnay <dtolnay@gmail.com>
Thu, 6 Jan 2022 21:30:57 +0000 (13:30 -0800)
compiler/rustc_driver/src/lib.rs

index 12e0b7a4977e1cf88130901ac251958a77951cf0..3531e8f9a813694c392df5fcfdf657dd4c373cb2 100644 (file)
@@ -1047,7 +1047,7 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
     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.