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

resolve: Sort E0408 errors by Symbol str #72982

Merged
merged 2 commits into from
Jun 5, 2020
Merged

Conversation

tblah
Copy link
Contributor

@tblah tblah commented Jun 4, 2020

This is a request for comments implementing my suggested solution to #72913

Previously errors were sorted by Symbol index instead of the string. The indexes are not the same between architectures because Symbols for architecture extensions (e.g. x86 AVX or RISC-V d) are interned before the source file is parsed. RISC-V's naming of extensions after single letters led to it having errors sorted differently for test cases using single letter variable names. Instead sort the errors by the Symbol string so that it is stable across architectures.

While I was at it, there's also 8edb05c skipping some ui tests which I think are irrelevant for risc-v.

tblah added 2 commits June 4, 2020 15:59
Previously errors were sorted by Symbol index instead of the string. The
indexes are not the same between architectures because Symbols for
architecture extensions (e.g. x86 AVX or RISC-V d) are interned before
the source file is parsed. RISC-V's naming of extensions after single
letters led to it having errors sorted differently for test cases using
single letter variable names. Instead sort the errors by the Symbol
string so that it is stable across architectures.
@rust-highfive
Copy link
Collaborator

r? @estebank

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 4, 2020
@estebank
Copy link
Contributor

estebank commented Jun 4, 2020

@bors r+ rollup=never

@bors
Copy link
Contributor

bors commented Jun 4, 2020

📌 Commit 41bfd18 has been approved by estebank

@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 Jun 4, 2020
@Dylan-DPC-zz
Copy link

@bors p=1

@bors
Copy link
Contributor

bors commented Jun 5, 2020

⌛ Testing commit 41bfd18 with merge 06bf8e8f170ad9c20caadaf44538f6f704de427c...

@Dylan-DPC-zz
Copy link

@bors retry yield

@bors
Copy link
Contributor

bors commented Jun 5, 2020

⌛ Testing commit 41bfd18 with merge 826cb06...

@bors
Copy link
Contributor

bors commented Jun 5, 2020

☀️ Test successful - checks-azure
Approved by: estebank
Pushing 826cb06 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jun 5, 2020
@bors bors merged commit 826cb06 into rust-lang:master Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants