Skip to content

Commit 7174ec2

Browse files
committed
Exit nonzero on rustc -Wall
1 parent 8f3238f commit 7174ec2

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_driver/src

1 file changed

+1
-1
lines changed

compiler/rustc_driver/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
10471047
let wall = matches.opt_strs("W");
10481048
if wall.iter().any(|x| *x == "all") {
10491049
print_wall_help();
1050-
return None;
1050+
rustc_errors::FatalError.raise();
10511051
}
10521052

10531053
// Don't handle -W help here, because we might first load plugins.

0 commit comments

Comments
 (0)