Skip to content

Check diagnostic output in incremental cpass and rpass revisions#155228

Open
Zalathar wants to merge 3 commits intorust-lang:mainfrom
Zalathar:incr-test-diag
Open

Check diagnostic output in incremental cpass and rpass revisions#155228
Zalathar wants to merge 3 commits intorust-lang:mainfrom
Zalathar:incr-test-diag

Conversation

@Zalathar
Copy link
Copy Markdown
Member

This allows compiler warnings to be annotated in cpass and rpass revisions, and verifies that no unexpected warnings occur.


My underlying motivation is that I want to be able to reduce or eliminate the confusing combination of cfail revisions with //@ build-pass directives, and replace them with a more straightforward cpass revision that also checks diagnostic output. That migration is not part of this PR.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 13, 2026

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@rustbot rustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc 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 Apr 13, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 13, 2026

r? @clubby789

rustbot has assigned @clubby789.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @jieyouxu, @oli-obk, @wesleywiser, bootstrap
  • @jieyouxu, @oli-obk, @wesleywiser, bootstrap expanded to 8 candidates
  • Random selection from Mark-Simulacrum, clubby789, jieyouxu

@jieyouxu
Copy link
Copy Markdown
Member

r? me

@rustbot rustbot assigned jieyouxu and unassigned clubby789 Apr 13, 2026
@rust-log-analyzer

This comment has been minimized.

@Zalathar
Copy link
Copy Markdown
Member Author

Zalathar commented Apr 13, 2026

Ugh, a Linux-only test emitting warnings.

I might just slap a //@ dont-require-annotations: WARN on it, and leave a FIXME for someone to potentially investigate later.

EDIT: The warnings appear to be GCC-only, so I applied an //@ ignore-backends: gcc instead, as there are already several of those in the incremental suite.

@Zalathar

This comment was marked as duplicate.

@rust-bors

This comment was marked as outdated.

@Zalathar
Copy link
Copy Markdown
Member Author

@bors try jobs=x86_64-gnu

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Apr 13, 2026
Check diagnostic output in incremental `cpass` and `rpass` revisions


try-job: x86_64-gnu
This avoids having to add several unhelpful annotations when enabling
diagnostic checks for `cpass` and `rpass` revisions.
This allows warnings to be annotated, and verifies that no unexpected warnings
occur.
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 13, 2026

☀️ Try build successful (CI)
Build commit: e7053b8 (e7053b858097a5db7be019c4aa896b1f68a24843, parent: 14196dbfa3eb7c30195251eac092b1b86c8a2d84)

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-testsuite Area: The testsuite used to check the correctness of rustc 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants