Rename --warnings=allow to --warnings=warn
We never allowed the warnings, only made them not denied.
This commit is contained in:
parent
c86ea34639
commit
fda251b966
1 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ pub struct Flags {
|
|||
// This overrides the deny-warnings configuation option,
|
||||
// which passes -Dwarnings to the compiler invocations.
|
||||
//
|
||||
// true => deny, false => allow
|
||||
// true => deny, false => warn
|
||||
pub deny_warnings: Option<bool>,
|
||||
}
|
||||
|
||||
|
@ -556,10 +556,10 @@ fn split(s: &[String]) -> Vec<String> {
|
|||
fn parse_deny_warnings(matches: &getopts::Matches) -> Option<bool> {
|
||||
match matches.opt_str("warnings").as_ref().map(|v| v.as_str()) {
|
||||
Some("deny") => Some(true),
|
||||
Some("allow") => Some(false),
|
||||
Some("warn") => Some(false),
|
||||
Some(value) => {
|
||||
eprintln!(
|
||||
r#"invalid value for --warnings: {:?}, expected "allow" or "deny""#,
|
||||
r#"invalid value for --warnings: {:?}, expected "warn" or "deny""#,
|
||||
value,
|
||||
);
|
||||
process::exit(1);
|
||||
|
|
Loading…
Reference in a new issue