1
Fork 0

Recover parentheses in range patterns

Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
This commit is contained in:
Lieselotte 2024-01-03 15:27:58 +01:00
parent e51e98dde6
commit 4e0baddbbf
No known key found for this signature in database
GPG key ID: 43A6A32F83A6F9B1
7 changed files with 151 additions and 18 deletions

View file

@ -767,6 +767,9 @@ parse_unexpected_if_with_if = unexpected `if` in the condition expression
parse_unexpected_lifetime_in_pattern = unexpected lifetime `{$symbol}` in pattern
.suggestion = remove the lifetime
parse_unexpected_paren_in_range_pat = range pattern bounds cannot have parentheses
parse_unexpected_paren_in_range_pat_sugg = remove these parentheses
parse_unexpected_parentheses_in_for_head = unexpected parentheses surrounding `for` loop head
.suggestion = remove parentheses in `for` loop