Skip to content

Commit

Permalink
Exit nonzero on rustc -Wall
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 6, 2022
1 parent 8f3238f commit 7174ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7174ec2

Please sign in to comment.