From 0401a9935fd532a67b4f825684a57f43af8a4f65 Mon Sep 17 00:00:00 2001 From: Tristan Dannenberg Date: Tue, 12 Jan 2021 17:29:47 +0100 Subject: Update help message and add regression test --- src/test/rustdoc/issue-80893.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/test/rustdoc/issue-80893.rs (limited to 'src/test/rustdoc') 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; -- cgit 1.4.1-3-g733a5 From f3c8f29b3bf784b27e212d289065c5dd1c4cc5fe Mon Sep 17 00:00:00 2001 From: Tristan Dannenberg Date: Tue, 12 Jan 2021 18:18:10 +0100 Subject: Simplify regression test Co-authored-by: Joshua Nelson --- src/test/rustdoc/issue-80893.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/test/rustdoc') diff --git a/src/test/rustdoc/issue-80893.rs b/src/test/rustdoc/issue-80893.rs index 26f9a56b50e..7c958a80be3 100644 --- a/src/test/rustdoc/issue-80893.rs +++ b/src/test/rustdoc/issue-80893.rs @@ -1,7 +1,6 @@ -// compile-flags: --test -Z unstable-options --test-builder true --runtool true +// compile-flags: --test -Z unstable-options --test-builder 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 +/// ```no_run +/// This tests that `--test-builder` is accepted as a flag by rustdoc. /// ``` pub struct Foo; -- cgit 1.4.1-3-g733a5