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

Migrate rustc_metadata to SessionDiagnostics #100928

Merged
merged 8 commits into from
Sep 3, 2022

Conversation

CleanCut
Copy link
Contributor

@CleanCut CleanCut commented Aug 23, 2022

Migrate rustc_metadata to SessionDiagnostics.

Part of #100717

@rust-highfive
Copy link
Collaborator

r? @lcnr

(rust-highfive has picked a reviewer for you, use r? to override)

@rustbot rustbot added A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 23, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 23, 2022
@CleanCut CleanCut mentioned this pull request Aug 23, 2022
84 tasks
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@lcnr
Copy link
Contributor

lcnr commented Aug 24, 2022

r? diagnostics

@rust-highfive rust-highfive assigned estebank and unassigned lcnr Aug 24, 2022
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@CleanCut CleanCut marked this pull request as ready for review August 24, 2022 23:21
@rustbot
Copy link
Collaborator

rustbot commented Aug 24, 2022

rustc_error_messages was changed

cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki

Copy link
Member

@davidtwco davidtwco left a comment

Choose a reason for hiding this comment

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

This is a great start. I think it would be good to try and use the original types in the diagnostic structs as much as possible, like Symbol and PathBuf and io::Error, because then the struct captures the actual error better.

compiler/rustc_metadata/src/creader.rs Outdated Show resolved Hide resolved
compiler/rustc_metadata/src/dependency_format.rs Outdated Show resolved Hide resolved
compiler/rustc_metadata/src/errors.rs Outdated Show resolved Hide resolved
compiler/rustc_metadata/src/fs.rs Outdated Show resolved Hide resolved
compiler/rustc_metadata/src/errors.rs Outdated Show resolved Hide resolved
@rust-log-analyzer

This comment has been minimized.

@CleanCut
Copy link
Contributor Author

This is a great start. I think it would be good to try and use the original types in the diagnostic structs as much as possible, like Symbol and PathBuf and io::Error, because then the struct captures the actual error better.

Ah, that's a much better way to do it. Now I know.

✅ Done.

@CleanCut

This comment was marked as resolved.

@rust-log-analyzer

This comment has been minimized.

@CleanCut
Copy link
Contributor Author

✅ All feedback addressed. Ready for re-review.

@bors

This comment was marked as resolved.

@rust-log-analyzer

This comment has been minimized.

@davidtwco
Copy link
Member

This is great, do you think you could squash some of the commits? I don't mind if there are some that show the logical progression of the changes but ones that just fix earlier commits don't add much :)

@bors
Copy link
Contributor

bors commented Sep 1, 2022

📌 Commit 30adfd6 has been approved by davidtwco

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 1, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Sep 1, 2022
…s, r=davidtwco

Migrate rustc_metadata to SessionDiagnostics

Migrate rustc_metadata to SessionDiagnostics.

Part of rust-lang#100717
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Sep 2, 2022
…s, r=davidtwco

Migrate rustc_metadata to SessionDiagnostics

Migrate rustc_metadata to SessionDiagnostics.

Part of rust-lang#100717
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Sep 2, 2022
…s, r=davidtwco

Migrate rustc_metadata to SessionDiagnostics

Migrate rustc_metadata to SessionDiagnostics.

Part of rust-lang#100717
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Sep 2, 2022
…s, r=davidtwco

Migrate rustc_metadata to SessionDiagnostics

Migrate rustc_metadata to SessionDiagnostics.

Part of rust-lang#100717
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Sep 2, 2022
…s, r=davidtwco

Migrate rustc_metadata to SessionDiagnostics

Migrate rustc_metadata to SessionDiagnostics.

Part of rust-lang#100717
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Sep 2, 2022
…s, r=davidtwco

Migrate rustc_metadata to SessionDiagnostics

Migrate rustc_metadata to SessionDiagnostics.

Part of rust-lang#100717
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Sep 2, 2022
…s, r=davidtwco

Migrate rustc_metadata to SessionDiagnostics

Migrate rustc_metadata to SessionDiagnostics.

Part of rust-lang#100717
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 3, 2022
…s, r=davidtwco

Migrate rustc_metadata to SessionDiagnostics

Migrate rustc_metadata to SessionDiagnostics.

Part of rust-lang#100717
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 3, 2022
Rollup of 7 pull requests

Successful merges:

 - rust-lang#99736 (Partially stabilize `bound_as_ref` by stabilizing `Bound::as_ref`)
 - rust-lang#100928 (Migrate rustc_metadata to SessionDiagnostics)
 - rust-lang#101217 ([drop tracking] Use parent expression for scope, not parent node )
 - rust-lang#101325 (Windows RNG: Use `BCRYPT_RNG_ALG_HANDLE` by default)
 - rust-lang#101330 (Fix `std::collections::HashSet::drain` documentation)
 - rust-lang#101338 (Fix unsupported syntax in .manifest file)
 - rust-lang#101348 (Cleanup css theme)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit a005679 into rust-lang:master Sep 3, 2022
@rustbot rustbot added this to the 1.65.0 milestone Sep 3, 2022
@CleanCut CleanCut deleted the rustc_metadata_diagnostics branch September 3, 2022 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic 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.

8 participants