Fix last compare-mode false negatives in tests by lqd · Pull Request #136504 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation8 Commits3 Checks6 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

lqd

This PR is a continuation of #136310 and fixes the last remaining cases of false negatives when running tests under a compare-mode.

With these normalizations, all the compare-mode failures in next-solver (and polonius) should now be real, actual differences in diagnostics.

@lqd

@lqd

@lqd

@rustbot

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
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

@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

Feb 3, 2025

jieyouxu

Member

@jieyouxu jieyouxu left a comment • Loading

Choose a reason for hiding this comment

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

The test changes themselves look reasonable to me. However, I don't quite understand the underlying problem. These normalizations look very easy to forgor. Do we have an issue somewhere to track the compare-mode false-negative problems? That is, adding new tests look super easy to neglect doing these compare-mode normalizations, right?

@jieyouxu

@lqd

Member Author

lqd commented

Feb 3, 2025

• Loading

The problem is described in my ted talk in #136328 (comment) and I don't have a satisfying fix in mind between compiletest/rustc/tests. Maybe you will have one?

Though, it'd be cool not to be blocked on a complete compiletest fix in the meantime.

That is, adding new tests look super easy to neglect doing these compare-mode normalizations, right?

Absolutely, unfortunately.

@jieyouxu

The problem is described in my ted talk in #136328 (comment) and I don't have a satisfying fix in mind between compiletest/rustc/tests. Maybe you will have one?

Ah right, I completely failed to make the connection. Opened a new issue #136510. Haven't looked deeply into this yet, but that doesn't need to block this PR that is an immediate relief.

You can r=me after PR CI is green of course.

@jieyouxu

(To be brutally honest: I have no idea what a compare-mode is, this is a specific corner of compiletest that I have not yet looked into lmao)

@lqd

@bors

📌 Commit 62d0771 has been approved by jieyouxu

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

Feb 3, 2025

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 4, 2025

@bors

Rollup of 6 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Feb 4, 2025

@rust-timer

Rollup merge of rust-lang#136504 - lqd:more-compare-modes, r=jieyouxu

Fix last compare-mode false negatives in tests

This PR is a continuation of rust-lang#136310 and fixes the last remaining cases of false negatives when running tests under a compare-mode.

With these normalizations, all the compare-mode failures in next-solver (and polonius) should now be real, actual differences in diagnostics.

@lqd lqd deleted the more-compare-modes branch

February 4, 2025 17:55

github-actions bot pushed a commit to tautschnig/verify-rust-std that referenced this pull request

Mar 11, 2025

@bors

Rollup of 6 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

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.