1
Fork 0

move sugg to derive session diagnostic

This commit is contained in:
yukang 2023-05-09 11:51:04 +08:00
parent 5e94b5faf1
commit 4d219d0666
3 changed files with 18 additions and 9 deletions

View file

@ -906,6 +906,18 @@ pub(crate) struct SuggRemoveComma {
pub span: Span,
}
#[derive(Subdiagnostic)]
#[suggestion(
parse_sugg_add_let_for_stmt,
style = "verbose",
applicability = "maybe-incorrect",
code = "let "
)]
pub(crate) struct SuggAddMissingLetStmt {
#[primary_span]
pub span: Span,
}
#[derive(Subdiagnostic)]
pub(crate) enum ExpectedIdentifierFound {
#[label(parse_expected_identifier_found_reserved_identifier)]