Update help message and add regression test

This commit is contained in:
Tristan Dannenberg 2021-01-12 17:29:47 +01:00
parent b18a426fb4
commit 0401a9935f
2 changed files with 8 additions and 6 deletions

View File

@ -412,12 +412,7 @@ fn opts() -> Vec<RustcOptGroup> {
)
}),
unstable("test-builder", |o| {
o.optopt(
"",
"test-builder",
"specifies the rustc-like binary to use as the test builder",
"PATH",
)
o.optopt("", "test-builder", "The rustc-like binary to use as the test builder", "PATH")
}),
unstable("check", |o| o.optflag("", "check", "Run rustdoc checks")),
]

View File

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