fix #102806, suggest use .. to fill in the rest of the fields of Struct
This commit is contained in:
parent
6718ea1cff
commit
1e25882944
5 changed files with 103 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue