Prevent --test to be used in rustdoc-html testsuite - #162030
Prevent --test to be used in rustdoc-html testsuite#162030GuillaumeGomez wants to merge 4 commits into
--test to be used in rustdoc-html testsuite#162030Conversation
|
Some changes occurred in src/tools/compiletest cc @jieyouxu |
There was a problem hiding this comment.
r=me once unblocked
As I've mentioned in #162014 (review) rejecting tests w/o any HtmlDocCk directives instead (someday in the future) might even be more helpful.
| pub(super) fn run_rustdoc_html_test(&self) { | ||
| assert!(self.variant.revision.is_none(), "revisions not supported in this test suite"); | ||
|
|
||
| if self.props.compile_flags.iter().any(|s| s == "--test") { |
There was a problem hiding this comment.
For onlookers: We already do this sort of thing in compiletest, i.e., going through the compile flags to forbid certain ones (see --edition for example).
| pub(super) fn run_rustdoc_html_test(&self) { | ||
| assert!(self.variant.revision.is_none(), "revisions not supported in this test suite"); | ||
|
|
||
| if self.props.compile_flags.iter().any(|s| s == "--test") { |
There was a problem hiding this comment.
People can accidentally bypass this check by using //@ doc-flags (for the record, you shouldn't use it for flags that are also supported by rustc but, oh well, that won't stop anyone).
Anyways, doesn't really matter. Feel free to implement or ignore that.
This comment has been minimized.
This comment has been minimized.
3588207 to
fa9cd5b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
8a20a9c to
5c99f49
Compare
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
Now we wait for #162014 to be merged. |
As promised.
CI will fail until #162014 is merged though.
r? @fmease