diff options
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/diagnostics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs index 1c09f56e4e6..dea9681a9af 100644 --- a/compiler/rustc_parse/src/parser/diagnostics.rs +++ b/compiler/rustc_parse/src/parser/diagnostics.rs @@ -310,16 +310,16 @@ struct IncorrectSemicolon<'a> { #[error(slug = "parser-incorrect-use-of-await")] struct IncorrectUseOfAwait { #[primary_span] - #[suggestion(applicability = "machine-applicable")] + #[suggestion(message = "parentheses-suggestion", applicability = "machine-applicable")] span: Span, } #[derive(SessionDiagnostic)] -#[error(slug = "parser-incorrect-await")] +#[error(slug = "parser-incorrect-use-of-await")] struct IncorrectAwait { #[primary_span] span: Span, - #[suggestion(code = "{expr}.await{question_mark}")] + #[suggestion(message = "postfix-suggestion", code = "{expr}.await{question_mark}")] sugg_span: (Span, Applicability), expr: String, question_mark: &'static str, |
