Exit nonzero on rustc -Wall

This commit is contained in:
David Tolnay
2022-01-02 14:24:11 -08:00
parent 8f3238f898
commit 7174ec22cf

View 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.