Skip to content

compiletest: Rename //@ ignore-pass to //@ no-pass-override#156531

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
Zalathar:no-pass-override
May 14, 2026
Merged

compiletest: Rename //@ ignore-pass to //@ no-pass-override#156531
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
Zalathar:no-pass-override

Conversation

@Zalathar
Copy link
Copy Markdown
Member

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.


r? jieyouxu

Zalathar added 2 commits May 13, 2026 17:15
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.
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 13, 2026

compiletest directives have been modified. Please add or update docs for the
new or modified directive in src/doc/rustc-dev-guide/.

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.

cc @BoxyUwU, @tshepang

@rustbot rustbot added A-compiletest Area: The compiletest test runner A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc F-explicit_tail_calls `#![feature(explicit_tail_calls)]` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 13, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 13, 2026

jieyouxu is currently at their maximum review capacity.
They may take a while to respond.

Copy link
Copy Markdown
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 14, 2026

📌 Commit cda9a68 has been approved by jieyouxu

It is now in the queue for this repository.

🌲 The tree is currently closed for pull requests below priority 1. This pull request will be tested once the tree is reopened.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 14, 2026
rust-bors Bot pushed a commit that referenced this pull request May 14, 2026
Rollup of 2 pull requests

Successful merges:

 - #156450 (compiletest: Enforce that directives are consistently used with or without a colon)
 - #156531 (compiletest: Rename `//@ ignore-pass` to `//@ no-pass-override`)
rust-timer added a commit that referenced this pull request May 14, 2026
Rollup merge of #156531 - Zalathar:no-pass-override, r=jieyouxu

compiletest: Rename `//@ ignore-pass` to `//@ no-pass-override`

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.

---
r? jieyouxu
@rust-bors rust-bors Bot merged commit 76d07a6 into rust-lang:main May 14, 2026
11 checks passed
@rustbot rustbot added this to the 1.97.0 milestone May 14, 2026
@Zalathar Zalathar deleted the no-pass-override branch May 14, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc F-explicit_tail_calls `#![feature(explicit_tail_calls)]` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants