compiletest: Remove rfail support from incremental tests#154751
compiletest: Remove rfail support from incremental tests#154751rust-bors[bot] merged 1 commit intorust-lang:mainfrom
rfail support from incremental tests#154751Conversation
|
Some changes occurred in src/tools/compiletest cc @jieyouxu The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes. |
|
r? @wesleywiser rustbot has assigned @wesleywiser. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
After some more experimentation, I found that reverting the compiler changes in #83220 on current main does not cause That makes me suspect that the regression test is currently not providing any value at all, and that we would be better off just deleting it. |
|
I have pushed an update that simply deletes |
Incremental revisions beginning with `rfail` would cause the incremental test runner to build the test program, expecting success, and then run the test program, expecting failure. Expecting incremental tests to fail at runtime is of questionable utility, because in almost all cases an equivalent test program can be made to succeed at runtime instead. Removing `rfail` support is a small step towards cleaning up compiletest's incremental test runner, and its overall handling of pass/fail expectations. There was one existing regression test using `rfail` revisions: `tests/incremental/issue-80691-bad-eval-cache.rs`. The test code is complex, and reverting the fix in RUST-83220 does not actually cause the test to fail, suggesting that it is no longer a useful regression test. This commit therefore deletes that test.
|
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. |
|
@bors r+ rollup |
Rollup of 6 pull requests Successful merges: - #154627 (Move `rustc_middle::mir::mono` to `rustc_middle::mono`) - #154729 (de-non_const some `Iterator` methods) - #154891 (implement `StructuralPartialEq` for `MaybeDangling`) - #154894 (Slightly refactor mplace<->ptr conversions) - #154751 (compiletest: Remove `rfail` support from incremental tests) - #154901 (Update books)
Rollup merge of #154751 - Zalathar:rfail, r=wesleywiser compiletest: Remove `rfail` support from incremental tests Incremental revisions beginning with `rfail` would cause the incremental test runner to build the test program, expecting success, and then run the test program, expecting failure. Expecting incremental tests to fail at runtime is of questionable utility, because in almost all cases an equivalent test program can be made to succeed at runtime instead. Removing `rfail` support is a small step towards cleaning up compiletest's incremental test runner, and its overall handling of pass/fail expectations. There was one existing regression test using `rfail` revisions: `tests/incremental/issue-80691-bad-eval-cache.rs`. The test code is complex, and reverting the fix in #83220 does not actually cause the test to fail, suggesting that it is no longer a useful regression test. This PR therefore deletes that test. (An earlier draft of this PR ported the test to run-make, but now it has been removed entirely.)
Rollup of 6 pull requests Successful merges: - rust-lang/rust#154627 (Move `rustc_middle::mir::mono` to `rustc_middle::mono`) - rust-lang/rust#154729 (de-non_const some `Iterator` methods) - rust-lang/rust#154891 (implement `StructuralPartialEq` for `MaybeDangling`) - rust-lang/rust#154894 (Slightly refactor mplace<->ptr conversions) - rust-lang/rust#154751 (compiletest: Remove `rfail` support from incremental tests) - rust-lang/rust#154901 (Update books)
Rollup of 6 pull requests Successful merges: - rust-lang/rust#154627 (Move `rustc_middle::mir::mono` to `rustc_middle::mono`) - rust-lang/rust#154729 (de-non_const some `Iterator` methods) - rust-lang/rust#154891 (implement `StructuralPartialEq` for `MaybeDangling`) - rust-lang/rust#154894 (Slightly refactor mplace<->ptr conversions) - rust-lang/rust#154751 (compiletest: Remove `rfail` support from incremental tests) - rust-lang/rust#154901 (Update books)
Incremental revisions beginning with
rfailwould cause the incremental test runner to build the test program, expecting success, and then run the test program, expecting failure.Expecting incremental tests to fail at runtime is of questionable utility, because in almost all cases an equivalent test program can be made to succeed at runtime instead.
Removing
rfailsupport is a small step towards cleaning up compiletest's incremental test runner, and its overall handling of pass/fail expectations.There was one existing regression test using
rfailrevisions:tests/incremental/issue-80691-bad-eval-cache.rs. The test code is complex, and reverting the fix in #83220 does not actually cause the test to fail, suggesting that it is no longer a useful regression test. This PR therefore deletes that test.(An earlier draft of this PR ported the test to run-make, but now it has been removed entirely.)