File tree 2 files changed +5
-9
lines changed
rustc_error_messages/locales/en-US
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,5 @@ parser-incorrect-semicolon =
26
26
27
27
parser-incorrect-use-of-await =
28
28
incorrect use of `await`
29
- .suggestion = `await` is not a method call, remove the parentheses
30
-
31
-
32
- parser-incorrect-await =
33
- incorrect use of `await`
34
- .suggestion = `await` is a postfix operation
29
+ .parentheses-suggestion = `await` is not a method call, remove the parentheses
30
+ .postfix-suggestion = `await` is a postfix operation
Original file line number Diff line number Diff line change @@ -310,16 +310,16 @@ struct IncorrectSemicolon<'a> {
310
310
#[ error( slug = "parser-incorrect-use-of-await" ) ]
311
311
struct IncorrectUseOfAwait {
312
312
#[ primary_span]
313
- #[ suggestion( applicability = "machine-applicable" ) ]
313
+ #[ suggestion( message = "parentheses-suggestion" , applicability = "machine-applicable" ) ]
314
314
span : Span ,
315
315
}
316
316
317
317
#[ derive( SessionDiagnostic ) ]
318
- #[ error( slug = "parser-incorrect-await" ) ]
318
+ #[ error( slug = "parser-incorrect-use-of- await" ) ]
319
319
struct IncorrectAwait {
320
320
#[ primary_span]
321
321
span : Span ,
322
- #[ suggestion( code = "{expr}.await{question_mark}" ) ]
322
+ #[ suggestion( message = "postfix-suggestion" , code = "{expr}.await{question_mark}" ) ]
323
323
sugg_span : ( Span , Applicability ) ,
324
324
expr : String ,
325
325
question_mark : & ' static str ,
You can’t perform that action at this time.
0 commit comments