Skip to content

Commit

Permalink
Update help message and add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
teryror committed Jan 12, 2021
1 parent b18a426 commit 0401a99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/librustdoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
]
Expand Down
7 changes: 7 additions & 0 deletions src/test/rustdoc/issue-80893.rs
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 0401a99

Please sign in to comment.