Prevent --test to be used in rustdoc-html testsuite - #162030
Prevent --test to be used in rustdoc-html testsuite#162030GuillaumeGomez wants to merge 6 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
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
…-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 of 27 pull requests Successful merges: - #159074 ([PAC] FnAbi, llvm.ptrauth.resign and Session API change (2/8)) - #159792 (A more readable debug map for IndexMaps) - #160745 (make closures act like MaybeDangling) - #161940 (Promote `wasm32-wasip3` to a tier 2 target) - #162030 (Prevent `--test` to be used in `rustdoc-html` testsuite) - #162072 (Add new Tier-3 target: `powerpc64-sony-ps3`) - #162179 (type system const items via direct rhs) - #162262 (Avoid manually instantiating some binders in error reporting with `-Znext-solver`) - #162277 (Introduce `rustc_middle::middel::resolve`) - #162285 (box: fixup map/try_map deallocate calls) - #162286 (string: don't unwind prematurely) - #162289 (alloc: a bunch of safety comments) - #162290 (abby test DSL: AliasTyOutlivesViaEnv) - #162292 (Update `askama` version to `0.16.1`) - #160509 (Remove `RegionExt`; move methods to `Region` in `rustc_type_ir`) - #160906 (Suggest usize instead of placeholder type for array length constants) - #160936 (traits: Represent live alias arguments as bitsets) - #161400 (Improve diagnostics for references to closures) - #161656 (Suggest mutable references for FnMut closure arguments) - #161711 (Add more splat fn type tests) - #161786 (Make `tcx.def_id_partial_cmp` public) - #161953 (sanitizers: Implicitly disable mutually exclusive sanitizers) - #162155 (add suggestion for `rustc_allowed_through_unstable_modules` attribute) - #162212 (Implement `Rng` for `Box`) - #162246 (Fix incorrect meta span) - #162266 (std: fix typo) - #162291 (Add regression test from 1.98.1)
|
💔 I suspect this PR failed tests as part of a rollup After fixing the problem, consider running a try job for the failed job before re-approving. Link to failure: #162308 (comment) |
|
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 |
View all comments
As promised.
CI will fail until #162014 is merged though.
r? @fmease