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

Convert diagnostics in parser/expr to SessionDiagnostic #100713

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

Xiretza
Copy link
Contributor

@Xiretza Xiretza commented Aug 18, 2022

This migrates all the easy cases in rustc_parse::parser::expr to SessionDiagnostics, I've left things such as multipart_suggestions out for now in the hopes of a derive API being developed soon.

@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 18, 2022
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@Xiretza Xiretza force-pushed the parser-expr-session-diagnostics branch 2 times, most recently from 1675461 to 7c4b214 Compare August 18, 2022 10:29
@Xiretza Xiretza force-pushed the parser-expr-session-diagnostics branch 2 times, most recently from 143e9fd to 6061c7b Compare August 18, 2022 16:27
@rust-log-analyzer

This comment has been minimized.

@Xiretza Xiretza force-pushed the parser-expr-session-diagnostics branch from 6061c7b to 276f250 Compare August 18, 2022 20:37
@Xiretza Xiretza marked this pull request as ready for review August 18, 2022 20:37
@rustbot
Copy link
Collaborator

rustbot commented Aug 18, 2022

rustc_error_messages was changed

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

@Xiretza
Copy link
Contributor Author

Xiretza commented Aug 18, 2022

r? rust-lang/diagnostics

@estebank
Copy link
Contributor

r? @estebank @bors r+

@bors
Copy link
Contributor

bors commented Aug 19, 2022

📌 Commit 276f250fe29e879773a27cb1c73eddfdbadbb32b has been approved by estebank

It is now in the queue for this repository.

@rust-highfive rust-highfive assigned estebank and unassigned oli-obk Aug 19, 2022
@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Aug 19, 2022
@bors

This comment was marked as resolved.

@bors bors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 20, 2022
@Xiretza Xiretza force-pushed the parser-expr-session-diagnostics branch from 276f250 to 5cb75b9 Compare August 20, 2022 11:18
@Xiretza
Copy link
Contributor Author

Xiretza commented Aug 20, 2022

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 20, 2022
@Xiretza Xiretza force-pushed the parser-expr-session-diagnostics branch from 5cb75b9 to ffcaa0d Compare August 21, 2022 12:54
@Xiretza Xiretza requested a review from estebank August 21, 2022 19:17
@davidtwco
Copy link
Member

@bors r=estebank

@bors
Copy link
Contributor

bors commented Aug 22, 2022

📌 Commit ffcaa0d has been approved by estebank

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 Aug 22, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Aug 22, 2022
…stics, r=estebank

Convert diagnostics in parser/expr to SessionDiagnostic

This migrates all the easy cases in `rustc_parse::parser::expr` to `SessionDiagnostic`s, I've left things such as `multipart_suggestion`s out for now in the hopes of a derive API being developed soon.
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 22, 2022
Rollup of 8 pull requests

Successful merges:

 - rust-lang#98200 (Expand potential inner `Or` pattern for THIR)
 - rust-lang#99770 (Make some const prop mir-opt tests `unit-test`s)
 - rust-lang#99957 (Rework Ipv6Addr::is_global to check for global reachability rather than global scope - rebase)
 - rust-lang#100331 (Guarantee `try_reserve` preserves the contents on error)
 - rust-lang#100336 (Fix two const_trait_impl issues)
 - rust-lang#100713 (Convert diagnostics in parser/expr to SessionDiagnostic)
 - rust-lang#100820 (Use pointer `is_aligned*` methods)
 - rust-lang#100872 (Add guarantee that Vec::default() does not alloc)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 75b7089 into rust-lang:master Aug 22, 2022
@rustbot rustbot added this to the 1.65.0 milestone Aug 22, 2022
@Xiretza Xiretza deleted the parser-expr-session-diagnostics branch August 22, 2022 20:36
@davidtwco davidtwco mentioned this pull request Aug 23, 2022
84 tasks
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