diff options
| author | Tristan Dannenberg <dtristan@hotmail.de> | 2021-01-12 17:29:47 +0100 |
|---|---|---|
| committer | Tristan Dannenberg <dtristan@hotmail.de> | 2021-01-12 17:59:57 +0100 |
| commit | 0401a9935fd532a67b4f825684a57f43af8a4f65 (patch) | |
| tree | cedb77747c2cf9002ba010a46c277927064960a6 | |
| parent | b18a426fb4f28493f8777cef6a146ac8731eb43e (diff) | |
| download | rust-0401a9935fd532a67b4f825684a57f43af8a4f65.tar.gz rust-0401a9935fd532a67b4f825684a57f43af8a4f65.zip | |
Update help message and add regression test
| -rw-r--r-- | src/librustdoc/lib.rs | 7 | ||||
| -rw-r--r-- | src/test/rustdoc/issue-80893.rs | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index 5a324fb1e56..efcb006870c 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -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")), ] diff --git a/src/test/rustdoc/issue-80893.rs b/src/test/rustdoc/issue-80893.rs new file mode 100644 index 00000000000..26f9a56b50e --- /dev/null +++ b/src/test/rustdoc/issue-80893.rs @@ -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; |
