1
Fork 0

fix #102806, suggest use .. to fill in the rest of the fields of Struct

This commit is contained in:
yukang 2022-10-13 23:27:17 +08:00
parent 6718ea1cff
commit 1e25882944
5 changed files with 103 additions and 3 deletions

View file

@ -368,6 +368,15 @@ pub(crate) struct MissingSemicolonBeforeArray {
pub semicolon: Span,
}
#[derive(Diagnostic)]
#[diag(parser_expect_dotdot_not_dotdotdot)]
pub(crate) struct MissingDotDot {
#[primary_span]
pub token_span: Span,
#[suggestion_verbose(applicability = "maybe-incorrect", code = "..")]
pub sugg_span: Span,
}
#[derive(Diagnostic)]
#[diag(parser_invalid_block_macro_segment)]
pub(crate) struct InvalidBlockMacroSegment {