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/parser/item.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/parser/item.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 637ed2774a2..c923717ecaf 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -2043,9 +2043,6 @@ impl<'a> Parser<'a> { } self.expect_field_ty_separator()?; let ty = self.parse_ty()?; - if self.token == token::Colon && self.look_ahead(1, |t| *t != token::Colon) { - self.dcx().emit_err(errors::SingleColonStructType { span: self.token.span }); - } let default = if self.token == token::Eq { self.bump(); let const_expr = self.parse_expr_anon_const()?; |
