Skip to content

compiletest: Remove the -test suffix from normalize directives#134759

Merged
bors merged 3 commits intorust-lang:masterfrom
Zalathar:normalize
Dec 27, 2024
Merged

compiletest: Remove the -test suffix from normalize directives#134759
bors merged 3 commits intorust-lang:masterfrom
Zalathar:normalize

Conversation

@Zalathar
Copy link
Member

@Zalathar Zalathar commented Dec 25, 2024

This suffix was an artifact of using the same condition-checking engine as the ignore-* and only-* directives, but in practice we have only 2 tests that legitimately use a condition, and both of them only care about 32-bit vs 64-bit.

This PR detaches normalize-* directives from the condition checker, and replaces it with a much simpler system of four explicit NormalizeKind values. It then takes advantage of that simplicity to get rid of the -test suffix.


Addresses one of the points of #126372.

The new name-checking code is a bit quaint, but I think it's a definite improvement over the status quo.


The corresponding dev-guide update is rust-lang/rustc-dev-guide#2172.

r? jieyouxu

Loading
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-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.

5 participants