Exit nonzero on rustc -Wall

This commit is contained in:
David Tolnay 2022-01-02 14:24:11 -08:00
parent 8f3238f898
commit 7174ec22cf
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

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.