Prevent --test to be used in rustdoc-html testsuite - #162030
Conversation
|
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
This comment has been minimized.
This comment has been minimized.
|
Now we wait for #162014 to be merged. |
5c99f49 to
4e7bb82
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The run-make-support library was changed cc @jieyouxu |
|
Ok let's go! =D @bors r=fmease |
|
📋 This PR cannot be approved because it currently has the following label: |
|
Ah right, removed the label. Let's go again! @bors r=fmease |
…-html, r=fmease Prevent `--test` to be used in `rustdoc-html` testsuite As [promised](rust-lang#162014 (comment)). CI will fail until rust-lang#162014 is merged though. r? @fmease
|
This pull request was unapproved. This PR was contained in a rollup (#162308), which was unapproved. |
…un-make` without failing if no check is present
98880a9 to
5954af8
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Test passed locally. Rebased just in case. @bors try jobs=i686-gnu-nopt-1 |
This comment has been minimized.
This comment has been minimized.
Prevent `--test` to be used in `rustdoc-html` testsuite try-job: i686-gnu-nopt-1
|
💔 Test for 4d3f1f7 failed: CI. Failed job:
|
This comment has been minimized.
This comment has been minimized.
|
Ah damn, it was because of the @bors try jobs=i686-gnu-nopt-1 |
This comment has been minimized.
This comment has been minimized.
Prevent `--test` to be used in `rustdoc-html` testsuite try-job: i686-gnu-nopt-1
|
@bors r=fmease |
…-html, r=fmease Prevent `--test` to be used in `rustdoc-html` testsuite As [promised](rust-lang#162014 (comment)). CI will fail until rust-lang#162014 is merged though. r? @fmease
Rollup merge of #162030 - GuillaumeGomez:forbid-test-rustdoc-html, r=fmease Prevent `--test` to be used in `rustdoc-html` testsuite As [promised](#162014 (comment)). CI will fail until #162014 is merged though. r? @fmease
View all comments
As promised.
CI will fail until #162014 is merged though.
r? @fmease