Skip to content

Convert diagnostics in parser/expr to SessionDiagnostic - #100713

Merged
bors merged 1 commit into
rust-lang:masterfrom
Xiretza:parser-expr-session-diagnostics
Aug 22, 2022
Merged

Convert diagnostics in parser/expr to SessionDiagnostic#100713
bors merged 1 commit into
rust-lang:masterfrom
Xiretza:parser-expr-session-diagnostics

Conversation

@Xiretza

@XiretzaXiretza commented Aug 18, 2022

Copy link
Copy Markdown
Contributor

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.

@rustbotrustbot 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
Xiretzaforce-pushed the parser-expr-session-diagnostics branch 2 times, most recently from 1675461 to 7c4b214CompareAugust 18, 2022 10:29
Comment threadcompiler/rustc_parse/src/parser/expr.rs Outdated
@Xiretza
Xiretzaforce-pushed the parser-expr-session-diagnostics branch 2 times, most recently from 143e9fd to 6061c7bCompareAugust 18, 2022 16:27
@rust-log-analyzer

This comment has been minimized.

@Xiretza
Xiretzaforce-pushed the parser-expr-session-diagnostics branch from 6061c7b to 276f250CompareAugust 18, 2022 20:37
@Xiretza
Xiretza marked this pull request as ready for review August 18, 2022 20:37
@rustbot

Copy link
Copy Markdown
Collaborator

rustc_error_messages was changed

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

@Xiretza

Copy link
Copy Markdown
ContributorAuthor

r? rust-lang/diagnostics

Comment threadcompiler/rustc_parse/src/parser/expr.rs Outdated
@estebank

Copy link
Copy Markdown
Contributor

r? @estebank@bors r+

@bors

bors commented Aug 19, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 276f250fe29e879773a27cb1c73eddfdbadbb32b has been approved by estebank

It is now in the queue for this repository.

@borsbors 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.

@borsbors 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
Xiretzaforce-pushed the parser-expr-session-diagnostics branch from 276f250 to 5cb75b9CompareAugust 20, 2022 11:18
@Xiretza

Copy link
Copy Markdown
ContributorAuthor

@rustbot ready

@rustbotrustbot 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
Xiretzaforce-pushed the parser-expr-session-diagnostics branch from 5cb75b9 to ffcaa0dCompareAugust 21, 2022 12:54
@Xiretza
Xiretza requested a review from estebankAugust 21, 2022 19:17
@davidtwco

Copy link
Copy Markdown
Member

@bors r=estebank

@bors

bors commented Aug 22, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit ffcaa0d has been approved by estebank

It is now in the queue for this repository.

@borsbors 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.
@Dylan-DPCDylan-DPC mentioned this pull request Aug 22, 2022
@Dylan-DPCDylan-DPC mentioned this pull request Aug 22, 2022
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:masterAug 22, 2022
@rustbotrustbot 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
@davidtwcodavidtwco mentioned this pull request Aug 23, 2022
84 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-translationArea: Translation infrastructure, and migrating existing diagnostics to SessionDiagnosticS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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

@Xiretza@rust-log-analyzer@rustbot@estebank@bors@davidtwco@fmease@oli-obk