diff options
| author | Christian Poveda <git@pvdrz.com> | 2022-05-31 15:07:44 -0500 |
|---|---|---|
| committer | Christian Poveda <git@pvdrz.com> | 2022-05-31 15:07:44 -0500 |
| commit | 9ce04e378338b35d51a18c298f9f82fb4dbf920d (patch) | |
| tree | cbdd4555624cacc8eb611cbad21c8df96b185037 /compiler/rustc_parse/src | |
| parent | a06ba4548777cd4f4ac5379fbad6f2ab56ef85b1 (diff) | |
| download | rust-9ce04e378338b35d51a18c298f9f82fb4dbf920d.tar.gz rust-9ce04e378338b35d51a18c298f9f82fb4dbf920d.zip | |
merge diagnostics about incorrect uses of `.await`
Diffstat (limited to 'compiler/rustc_parse/src')
| -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, |
