diff options
| author | yukang <moorekang@gmail.com> | 2025-02-11 15:26:21 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2025-02-15 07:44:20 +0800 |
| commit | 0aa2e6b606fdca2c0166b6033e3ea0cb8484eeb7 (patch) | |
| tree | 6ed192cab064e2d9acaaefa9cb5431fc7fca6e87 /compiler/rustc_parse/src/errors.rs | |
| parent | d8810e3e2dab96778d20dd6d746ff95465515509 (diff) | |
| download | rust-0aa2e6b606fdca2c0166b6033e3ea0cb8484eeb7.tar.gz rust-0aa2e6b606fdca2c0166b6033e3ea0cb8484eeb7.zip | |
Try to recover from path sep error in parser
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 8f0e29c2769..dc03d6f9521 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -3072,14 +3072,6 @@ pub(crate) struct BadItemKind { } #[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 { #[primary_span] |
