Exit nonzero on rustc -Wall
This commit is contained in:
parent
8f3238f898
commit
7174ec22cf
|
@ -1047,7 +1047,7 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
|
||||||
let wall = matches.opt_strs("W");
|
let wall = matches.opt_strs("W");
|
||||||
if wall.iter().any(|x| *x == "all") {
|
if wall.iter().any(|x| *x == "all") {
|
||||||
print_wall_help();
|
print_wall_help();
|
||||||
return None;
|
rustc_errors::FatalError.raise();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't handle -W help here, because we might first load plugins.
|
// Don't handle -W help here, because we might first load plugins.
|
||||||
|
|
Loading…
Reference in a new issue