Skip to content

Error code cleanup and enforce checks - #86137

Merged
bors merged 5 commits into
rust-lang:masterfrom
GuillaumeGomez:error-code-cleanup
Jun 24, 2021
Merged

Error code cleanup and enforce checks#86137
bors merged 5 commits into
rust-lang:masterfrom
GuillaumeGomez:error-code-cleanup

Conversation

@GuillaumeGomez

@GuillaumeGomez GuillaumeGomez commented Jun 8, 2021

Copy link
Copy Markdown
Member

Fixes #86097.

It now checks if an error code is unused, and if so, will report an error if the error code wasn't commented out in the error_codes.rs file. It also checks that the constant used in the tidy check is up-to-date.

r? @Mark-Simulacrum

@GuillaumeGomez GuillaumeGomez added the A-error-codes Area: Explanation of an error code (--explain) label Jun 8, 2021
@rust-highfive

Copy link
Copy Markdown
Contributor

Some changes occurred in diagnostic error codes

cc @GuillaumeGomez

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 8, 2021
Comment thread src/tools/tidy/src/error_codes_check.rs Outdated

@Mark-Simulacrum Mark-Simulacrum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

r=me with nit resolved

@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 20, 2021
@GuillaumeGomez

Copy link
Copy Markdown
Member Author

@bors: r=Mark-Simulacrum

@bors

bors commented Jun 23, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit 03330ff9d1d88656c4a02f211b995b16e00b510d has been approved by Mark-Simulacrum

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 23, 2021
@bors

bors commented Jun 23, 2021

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 03330ff9d1d88656c4a02f211b995b16e00b510d with merge 74a7631fe4e17c36de0b42047db0911e316384ea...

@bors

bors commented Jun 23, 2021

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 23, 2021
@rust-log-analyzer

This comment has been minimized.

@GuillaumeGomez

Copy link
Copy Markdown
Member Author

This is intriguing: when running locally, no issue. Well I rebased, let's try again...

@bors: r=Mark-Simulacrum

@bors

bors commented Jun 23, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit 20f1b1c has been approved by Mark-Simulacrum

@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 23, 2021
@bors

bors commented Jun 23, 2021

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 20f1b1c with merge d2f2573cc638950c51c6f6e0bbf61662c99d0c43...

@rust-log-analyzer

This comment has been minimized.

@bors

bors commented Jun 23, 2021

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 23, 2021
@GuillaumeGomez

Copy link
Copy Markdown
Member Author

The problem was that I checked for paths containing slashes whereas windows use backslash (which also explains why I couldn't trigger the error locally).

@bors: r=Mark-Simulacrum

@bors

bors commented Jun 23, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit 0ab9d01 has been approved by Mark-Simulacrum

@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 23, 2021
@bors

bors commented Jun 24, 2021

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 0ab9d01 with merge 64ddfb3ccbb149f174f2ad8ed873cf88e7fa5c34...

@JohnTitor

Copy link
Copy Markdown
Member

@bors retry rolled-up

bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 24, 2021
Rollup of 8 pull requests

Successful merges:

 - rust-lang#86137 (Error code cleanup and enforce checks)
 - rust-lang#86296 (Add documentation for various THIR structs)
 - rust-lang#86415 (Document associativity of iterator folds.)
 - rust-lang#86533 (Support lowercase error codes in `--explain`)
 - rust-lang#86536 (Edition 2021 enables disjoint capture)
 - rust-lang#86560 (Update cargo)
 - rust-lang#86561 (chore(rustdoc): Remove unused impl block)
 - rust-lang#86566 (Use `use_verbose` for `mir::Constant`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

A job failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

@bors

bors commented Jun 24, 2021

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 0ab9d01 with merge 964a81e...

@bors
bors merged commit 55fd13b into rust-lang:master Jun 24, 2021
@rustbot rustbot added this to the 1.55.0 milestone Jun 24, 2021
@GuillaumeGomez
GuillaumeGomez deleted the error-code-cleanup branch June 24, 2021 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-error-codes Area: Explanation of an error code (--explain) 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.

Tidy check for error codes doesn't detect if an error code isn't used anymore

7 participants