1
Fork 0

Try to recover from path sep error in parser

This commit is contained in:
yukang 2025-02-11 15:26:21 +08:00
parent d8810e3e2d
commit 0aa2e6b606
10 changed files with 92 additions and 40 deletions

View file

@ -3071,14 +3071,6 @@ pub(crate) struct BadItemKind {
pub help: bool,
}
#[derive(Diagnostic)]
#[diag(parse_single_colon_struct_type)]
pub(crate) struct SingleColonStructType {
#[primary_span]
#[suggestion(code = "::", applicability = "maybe-incorrect", style = "verbose")]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(parse_macro_rules_missing_bang)]
pub(crate) struct MacroRulesMissingBang {