diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-09-02 14:24:40 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-09-04 14:21:35 -0400 |
| commit | fda251b966ec5a8d1c3c001242777861f15b95e2 (patch) | |
| tree | ae1617f4d97b7bdd277026cee66768f8d45ff3b4 /src/bootstrap | |
| parent | c86ea34639b0962858f053e900fe7c7de1008c5f (diff) | |
| download | rust-fda251b966ec5a8d1c3c001242777861f15b95e2.tar.gz rust-fda251b966ec5a8d1c3c001242777861f15b95e2.zip | |
Rename --warnings=allow to --warnings=warn
We never allowed the warnings, only made them not denied.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/flags.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index 828865f10ff..d9580b59815 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -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); |
