about summary refs log tree commit diff
path: root/compiler/rustc_session
diff options
context:
space:
mode:
authorRyan Levick <me@ryanlevick.com>2021-07-21 15:40:52 +0200
committerRyan Levick <me@ryanlevick.com>2021-07-21 15:41:10 +0200
commit800c5f9202ca5309bbe372bbb8f2d6f1c29e59a5 (patch)
tree6888ba61f2a6c913050fd08e0b83b2e733e98d36 /compiler/rustc_session
parentda7d405357600a76f2b93b8aa41fe5ee5da7885d (diff)
downloadrust-800c5f9202ca5309bbe372bbb8f2d6f1c29e59a5.tar.gz
rust-800c5f9202ca5309bbe372bbb8f2d6f1c29e59a5.zip
Rename force-warns to force-warn
Diffstat (limited to 'compiler/rustc_session')
-rw-r--r--compiler/rustc_session/src/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs
index 9e5a38b8dc0..2d7f5f9b321 100644
--- a/compiler/rustc_session/src/config.rs
+++ b/compiler/rustc_session/src/config.rs
@@ -1101,7 +1101,7 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
         ),
         opt::multi_s(
             "",
-            "force-warns",
+            "force-warn",
             "Specifiy lints that should warn even if \
              they are allowed somewhere else",
             "LINT",
@@ -1175,11 +1175,11 @@ pub fn get_cmd_lint_options(
     let mut lint_opts_with_position = vec![];
     let mut describe_lints = false;
 
-    if !debugging_opts.unstable_options && matches.opt_present("force-warns") {
+    if !debugging_opts.unstable_options && matches.opt_present("force-warn") {
         early_error(
             error_format,
             "the `-Z unstable-options` flag must also be passed to enable \
-            the flag `--force-warns=lints`",
+            the flag `--force-warn=lints`",
         );
     }