Skip to content

Remove fragile equal-pointers-unequal tests. #140576

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

Merged
merged 1 commit into from
May 3, 2025

Conversation

m-ou-se
Copy link
Member

@m-ou-se m-ou-se commented May 2, 2025

Same as #139176


These tests were added in #127003

These tests stop working when I change implementation details of format_args!(). These tests shouldn't rely on such implementation details.

Do these tests test anything that isn't already covered by other tests? If so, they should be expressed in a less fragile way that doesn't rely on internal details of format_args!().

cc @GrigorenkoPV, author of these tests.

These randomly break when i change the implementation of format_args!().
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 2, 2025
@compiler-errors
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented May 2, 2025

📌 Commit 6f1a54b has been approved by compiler-errors

It is now in the queue for this repository.

@bors bors 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 2, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request May 3, 2025
…iaskrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#138712 (resolve: Support imports of associated types and glob imports from traits)
 - rust-lang#140395 (organize and extend forbidden target feature tests)
 - rust-lang#140576 (Remove fragile equal-pointers-unequal tests.)
 - rust-lang#140582 (Update sysinfo to `0.35.0` in bootstrap and `tools/opt-dist`)
 - rust-lang#140595 (doc(std): fix typo lchown -> lchmod)
 - rust-lang#140597 (zkvm: remove schmerik as target maintainer)
 - rust-lang#140604 (yet another small borrowck cleanup )

r? `@ghost`
`@rustbot` modify labels: rollup
@bjorn3
Copy link
Member

bjorn3 commented May 3, 2025

The tests are for a known miscompilation caused by LLVM. The intent is that the //@ known-bug gets removed once LLVM stops miscompiling them to prevent regressions in the future.

@bors bors merged commit 7b9fd9b into rust-lang:master May 3, 2025
6 checks passed
@rustbot rustbot added this to the 1.88.0 milestone May 3, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request May 3, 2025
Rollup merge of rust-lang#140576 - m-ou-se:fragile-tests, r=compiler-errors

Remove fragile equal-pointers-unequal tests.

Same as rust-lang#139176

---

These tests were added in rust-lang#127003

These tests stop working when I change implementation details of format_args!(). These tests shouldn't rely on such implementation details.

Do these tests test anything that isn't already covered by other tests? If so, they should be expressed in a less fragile way that doesn't rely on internal details of format_args!().

cc `@GrigorenkoPV,` author of these tests.
@m-ou-se m-ou-se deleted the fragile-tests branch May 4, 2025 06:27
@m-ou-se
Copy link
Member Author

m-ou-se commented May 4, 2025

The tests are for a known miscompilation caused by LLVM. The intent is that the //@ known-bug gets removed once LLVM stops miscompiling them to prevent regressions in the future.

Sure, but if I chanage anything about the format_args!() implementation details, the bugs are no longer triggered. So if we want these tests, they should be rewritten to not rely on the exact expansion/lowering of format_args!().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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