compiletest: Rename //@ ignore-pass to //@ no-pass-override#156531
Open
Zalathar wants to merge 2 commits into
Open
compiletest: Rename //@ ignore-pass to //@ no-pass-override#156531Zalathar wants to merge 2 commits into
//@ ignore-pass to //@ no-pass-override#156531Zalathar wants to merge 2 commits into
Conversation
The compiletest `--pass` flag only affects tests with a `*-pass` directive, i.e. `check-pass`, `build-pass`, or `run-pass`. It has no effect in `*-fail` tests, or in auxiliary crates.
By convention, compiletest directives starting with `ignore-*` normally cause the test itself to be skipped under certain conditions. The `//@ ignore-pass` directive was the only exception to that convention. The new name should hopefully do a better job of communicating its effect, which is to cause the `--pass` flag to not override the test's `build-pass` or `run-pass` directive. The `//@ no-pass-override` directive is mainly useful for tests that expect warnings produced during codegen.
Collaborator
|
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. |
Collaborator
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By convention, compiletest directives starting with
ignore-*normally cause the test itself to be skipped under certain conditions.The
//@ ignore-passdirective was the only exception to that convention. The new name should hopefully do a better job of communicating its effect, which is to cause the--passflag to not override the test'sbuild-passorrun-passdirective.The
//@ no-pass-overridedirective is mainly useful for tests that expect warnings produced during codegen.r? jieyouxu