Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the -test suffix from normalize directives #2172

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

Zalathar
Copy link
Contributor

@Zalathar Zalathar commented Dec 25, 2024

Dev-guide update for rust-lang/rust#134759. Please wait for that to land first.

@Zalathar Zalathar added the S-blocked Status: this PR is blocked waiting for something label Dec 25, 2024
@jieyouxu jieyouxu added A-compiletest Area: src/tools/compiletest A-test-suite Area: our test suite `tests/` T-bootstrap Relevant to bootstrap team labels Dec 27, 2024
jieyouxu added a commit to jieyouxu/rust that referenced this pull request Dec 27, 2024
compiletest: Remove the `-test` suffix from normalize directives

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 rust-lang#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
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Dec 27, 2024
Rollup merge of rust-lang#134759 - Zalathar:normalize, r=jieyouxu

compiletest: Remove the `-test` suffix from normalize directives

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 rust-lang#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
@Zalathar Zalathar added S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content and removed S-blocked Status: this PR is blocked waiting for something labels Dec 28, 2024
@jieyouxu jieyouxu merged commit daaa466 into rust-lang:master Dec 28, 2024
1 check passed
@jieyouxu
Copy link
Member

Thanks

@Zalathar Zalathar deleted the normalize branch December 28, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-compiletest Area: src/tools/compiletest A-test-suite Area: our test suite `tests/` S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content T-bootstrap Relevant to bootstrap team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants