Skip to content

Commit c64d3f0

Browse files
authored
Rollup merge of #80924 - teryror:issue-80893-fix, r=jyn514
Fix rustdoc --test-builder argument parsing My suggested fix to issue #80893. I can actually hook Miri in there now. I also fixed what I believe to be a typo in the option's help text.
2 parents d64e703 + f3c8f29 commit c64d3f0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/librustdoc/lib.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -412,11 +412,7 @@ fn opts() -> Vec<RustcOptGroup> {
412412
)
413413
}),
414414
unstable("test-builder", |o| {
415-
o.optflag(
416-
"",
417-
"test-builder",
418-
"specified the rustc-like binary to use as the test builder",
419-
)
415+
o.optopt("", "test-builder", "The rustc-like binary to use as the test builder", "PATH")
420416
}),
421417
unstable("check", |o| o.optflag("", "check", "Run rustdoc checks")),
422418
]

src/test/rustdoc/issue-80893.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// compile-flags: --test -Z unstable-options --test-builder true
2+
3+
/// ```no_run
4+
/// This tests that `--test-builder` is accepted as a flag by rustdoc.
5+
/// ```
6+
pub struct Foo;

0 commit comments

Comments
 (0)