Uh oh!
There was an error while loading. Please reload this page.
Migrate ambiguous plus diagnostic to the new derive macro - #96405
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.
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.
I'd be happy to do it but I couldn't find any examples on how to use it.
davidtwco
left a comment
There was a problem hiding this comment.
Looks great, left some minor comments.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
davidtwco
left a comment
There was a problem hiding this comment.
Okay, one final small change, then r=me
Uh oh!
There was an error while loading. Please reload this page.
oli-obk
commented
Apr 27, 2022
@bors r=davidtwco |
bors
commented
Apr 27, 2022
📌 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