-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Migrate ambiguous plus diagnostic to the new derive macro #96405
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
#[derive(SessionDiagnostic)] | ||
#[error(slug = "parser-maybe-report-ambiguous-plus")] | ||
struct AmbiguousPlus { | ||
pub sum_with_parens: String, | ||
#[primary_span] | ||
#[suggestion(code = "{sum_with_parens}")] | ||
pub span: Span, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't want to push more work on you, but this might be a good time to check if multipart_suggestion
support works as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be happy to do it but I couldn't find any examples on how to use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, left some minor comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, one final small change, then r=me
@bors r=davidtwco |
📌 Commit e7ae9eb has been approved by |
…davidtwco Migrate ambiguous plus diagnostic to the new derive macro r? `@davidtwco` `@jyn514`
…davidtwco Migrate ambiguous plus diagnostic to the new derive macro r? ``@davidtwco`` ``@jyn514``
…davidtwco Migrate ambiguous plus diagnostic to the new derive macro r? ```@davidtwco``` ```@jyn514```
Rollup of 5 pull requests Successful merges: - rust-lang#95312 (Ensure that `'_` and GAT yields errors) - rust-lang#96405 (Migrate ambiguous plus diagnostic to the new derive macro) - rust-lang#96409 (Recover suggestions to introduce named lifetime under NLL) - rust-lang#96433 (rustc_ast: Harmonize delimiter naming with `proc_macro::Delimiter`) - rust-lang#96480 (Fixed grammatical error in example comment) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
r? @davidtwco @jyn514