1
Fork 0

Remove now unreachable parse recovery code

StructLiteralNeedingParens is no longer reachable always giving
precedence to StructLiteralNotAllowedHere.

As an aside: The former error struct shouldn't've existed in the
first place. We should've just used the latter in this branch.
This commit is contained in:
León Orell Valerian Liehr 2025-03-24 00:12:53 +01:00
parent 82796dd858
commit 9f336ce2eb
No known key found for this signature in database
GPG key ID: D17A07215F68E713
6 changed files with 24 additions and 76 deletions

View file

@ -757,10 +757,6 @@ parse_struct_literal_body_without_path =
struct literal body without path
.suggestion = you might have forgotten to add the struct literal inside the block
parse_struct_literal_needing_parens =
invalid struct literal
.suggestion = you might need to surround the struct literal with parentheses
parse_struct_literal_not_allowed_here = struct literals are not allowed here
.suggestion = surround the struct literal with parentheses