Recover some items that expect braces and don't take semicolons

This commit is contained in:
Michael Goulet 2022-09-25 22:20:01 +00:00
parent f3fafbb006
commit 4d0d688a3c
7 changed files with 78 additions and 11 deletions

View file

@ -745,6 +745,14 @@ pub(crate) struct UseEqInstead {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(parser::use_empty_block_not_semi)]
pub(crate) struct UseEmptyBlockNotSemi {
#[primary_span]
#[suggestion_hidden(applicability = "machine-applicable", code = "{{}}")]
pub span: Span,
}
// SnapshotParser is used to create a snapshot of the parser
// without causing duplicate errors being emitted when the `Parser`
// is dropped.