Recover some items that expect braces and don't take semicolons
This commit is contained in:
parent
f3fafbb006
commit
4d0d688a3c
7 changed files with 78 additions and 11 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue