Skip to content

Commit 0cc66c8

Browse files
committed
Change all instance of optflag added since the original change to optflagmulti.
1 parent 5302539 commit 0cc66c8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/librustdoc/lib.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,9 @@ fn opts() -> Vec<RustcOptGroup> {
582582
unstable("test-builder", |o| {
583583
o.optopt("", "test-builder", "The rustc-like binary to use as the test builder", "PATH")
584584
}),
585-
unstable("check", |o| o.optflag("", "check", "Run rustdoc checks")),
585+
unstable("check", |o| o.optflagmulti("", "check", "Run rustdoc checks")),
586586
unstable("generate-redirect-map", |o| {
587-
o.optflag(
587+
o.optflagmulti(
588588
"",
589589
"generate-redirect-map",
590590
"Generate JSON file at the top level instead of generating HTML redirection files",
@@ -598,9 +598,11 @@ fn opts() -> Vec<RustcOptGroup> {
598598
"[unversioned-shared-resources,toolchain-shared-resources,invocation-specific]",
599599
)
600600
}),
601-
unstable("no-run", |o| o.optflag("", "no-run", "Compile doctests without running them")),
601+
unstable("no-run", |o| {
602+
o.optflagmulti("", "no-run", "Compile doctests without running them")
603+
}),
602604
unstable("show-type-layout", |o| {
603-
o.optflag("", "show-type-layout", "Include the memory layout of types in the docs")
605+
o.optflagmulti("", "show-type-layout", "Include the memory layout of types in the docs")
604606
}),
605607
]
606608
}

0 commit comments

Comments
 (0)