Skip to content

Commit 0401a99

Browse files
committed
Update help message and add regression test
1 parent b18a426 commit 0401a99

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/librustdoc/lib.rs

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

src/test/rustdoc/issue-80893.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// compile-flags: --test -Z unstable-options --test-builder true --runtool true
2+
3+
/// ```
4+
/// This does not compile, but specifying a custom --test-builder should let this pass anyway
5+
/// `true` does not generate an output file to run, so we also specify it as a runtool
6+
/// ```
7+
pub struct Foo;

0 commit comments

Comments
 (0)