Rollup merge of #103405 - chenyukang:yukang/fix-103381-and-if, r=compiler-errors
Detect incorrect chaining of if and if let conditions and recover Fixes #103381
This commit is contained in:
commit
3efbf30220
6 changed files with 192 additions and 2 deletions
|
@ -54,6 +54,9 @@ parser_invalid_logical_operator = `{$incorrect}` is not a logical operator
|
|||
parser_tilde_is_not_unary_operator = `~` cannot be used as a unary operator
|
||||
.suggestion = use `!` to perform bitwise not
|
||||
|
||||
parser_unexpected_if_with_if = unexpected `if` in the condition expression
|
||||
.suggestion = remove the `if`
|
||||
|
||||
parser_unexpected_token_after_not = unexpected {$negated_desc} after identifier
|
||||
parser_unexpected_token_after_not_bitwise = use `!` to perform bitwise not
|
||||
parser_unexpected_token_after_not_logical = use `!` to perform logical negation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue