Skip to content

feat: add diagnostic for E0784#22202

Open
WeiTheShinobi wants to merge 1 commit intorust-lang:masterfrom
WeiTheShinobi:diag_E0784
Open

feat: add diagnostic for E0784#22202
WeiTheShinobi wants to merge 1 commit intorust-lang:masterfrom
WeiTheShinobi:diag_E0784

Conversation

@WeiTheShinobi
Copy link
Copy Markdown
Contributor

Related to #22140

Co-authored-by: Copilot <copilot@github.com>
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 28, 2026
@@ -0,0 +1,42 @@
use crate::{Diagnostic, DiagnosticCode, DiagnosticsContext};

// Diagnostic: union-must-have-exactly-one-field
Copy link
Copy Markdown
Contributor

@ada4a ada4a Apr 28, 2026

Choose a reason for hiding this comment

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

not sure how much this matters, and it would make the already long name even longer, but imo this would be more correct?

Suggested change
// Diagnostic: union-must-have-exactly-one-field
// Diagnostic: union-expr-must-have-exactly-one-field

View changes since the review

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.

Yeah, I'd prefer that. Same for the variant in InferenceDiagnostic.

@@ -0,0 +1,42 @@
use crate::{Diagnostic, DiagnosticCode, DiagnosticsContext};

// Diagnostic: union-must-have-exactly-one-field
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.

Yeah, I'd prefer that. Same for the variant in InferenceDiagnostic.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 28, 2026

☔ The latest upstream changes (possibly #22197) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants