about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorZach Lute <zach.lute@gmail.com>2021-07-10 14:32:14 -0700
committerZach Lute <zach.lute@gmail.com>2021-07-10 14:32:14 -0700
commit0cc66c8ea73354e96abcd7fe4dc63e71a96451a5 (patch)
tree2e9829a65d0880efebaa00fe6bb7d971711706fe /src
parent5302539c98dafbe49f798ddd274c27686a2b7f6c (diff)
downloadrust-0cc66c8ea73354e96abcd7fe4dc63e71a96451a5.tar.gz
rust-0cc66c8ea73354e96abcd7fe4dc63e71a96451a5.zip
Change all instance of optflag added since the original change to optflagmulti.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/lib.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs
index ec233a689ef..bc635190f42 100644
--- a/src/librustdoc/lib.rs
+++ b/src/librustdoc/lib.rs
@@ -582,9 +582,9 @@ fn opts() -> Vec<RustcOptGroup> {
         unstable("test-builder", |o| {
             o.optopt("", "test-builder", "The rustc-like binary to use as the test builder", "PATH")
         }),
-        unstable("check", |o| o.optflag("", "check", "Run rustdoc checks")),
+        unstable("check", |o| o.optflagmulti("", "check", "Run rustdoc checks")),
         unstable("generate-redirect-map", |o| {
-            o.optflag(
+            o.optflagmulti(
                 "",
                 "generate-redirect-map",
                 "Generate JSON file at the top level instead of generating HTML redirection files",
@@ -598,9 +598,11 @@ fn opts() -> Vec<RustcOptGroup> {
                 "[unversioned-shared-resources,toolchain-shared-resources,invocation-specific]",
             )
         }),
-        unstable("no-run", |o| o.optflag("", "no-run", "Compile doctests without running them")),
+        unstable("no-run", |o| {
+            o.optflagmulti("", "no-run", "Compile doctests without running them")
+        }),
         unstable("show-type-layout", |o| {
-            o.optflag("", "show-type-layout", "Include the memory layout of types in the docs")
+            o.optflagmulti("", "show-type-layout", "Include the memory layout of types in the docs")
         }),
     ]
 }