diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 7ed64c5813fcd..efcb006870c5a 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -412,11 +412,7 @@ fn opts() -> Vec { ) }), unstable("test-builder", |o| { - o.optflag( - "", - "test-builder", - "specified the rustc-like binary to use as the test builder", - ) + o.optopt("", "test-builder", "The rustc-like binary to use as the test builder", "PATH") }), unstable("check", |o| o.optflag("", "check", "Run rustdoc checks")), ] diff --git a/src/test/rustdoc/issue-80893.rs b/src/test/rustdoc/issue-80893.rs new file mode 100644 index 0000000000000..7c958a80be395 --- /dev/null +++ b/src/test/rustdoc/issue-80893.rs @@ -0,0 +1,6 @@ +// compile-flags: --test -Z unstable-options --test-builder true + +/// ```no_run +/// This tests that `--test-builder` is accepted as a flag by rustdoc. +/// ``` +pub struct Foo;