Skip to content

Rename errors.rs file to diagnostics.rs (11/N)#157974

Open
GuillaumeGomez wants to merge 2 commits into
rust-lang:mainfrom
GuillaumeGomez:rename-err-to-diag
Open

Rename errors.rs file to diagnostics.rs (11/N)#157974
GuillaumeGomez wants to merge 2 commits into
rust-lang:mainfrom
GuillaumeGomez:rename-err-to-diag

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

Follow-up of #157485.

This one is a bit different than the previous ones: it had both diagnostics.rs and errors.rs files, but both were switched compared to what the other compiler crates do (for diagnostics.rs in particular). So first we switched the two files, and then, to avoid confusion between errors.rs and diagnostics.rs, I renamed errors.rs into error_helper.rs.

r? @JonathanBrouwer

@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 Jun 16, 2026

@JonathanBrouwer JonathanBrouwer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Github was very unhelpful with reviewing here, but managed to review the diff by making some manual diffs, looks good
@bors r+ rollup

View changes since this review

@rust-bors

rust-bors Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 4f6a600 has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 16, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 16, 2026
… r=JonathanBrouwer

Rename `errors.rs` file to `diagnostics.rs` (11/N)

Follow-up of rust-lang#157485.

This one is a bit different than the previous ones: it had both `diagnostics.rs` and `errors.rs` files, but both were switched compared to what the other compiler crates do (for `diagnostics.rs` in particular). So first we switched the two files, and then, to avoid confusion between `errors.rs` and `diagnostics.rs`, I renamed `errors.rs` into `error_helper.rs`.

r? @JonathanBrouwer
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.

3 participants