move sugg to derive session diagnostic
This commit is contained in:
parent
5e94b5faf1
commit
4d219d0666
3 changed files with 18 additions and 9 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue