fix incorrect suggestion for `!(a >= b) as i32 == c` fixes #12761 The expression `!(a >= b) as i32 == c` got simplified to `a < b as i32 == c`, but this is a syntax error. The result we want is `(a < b) as i32 == c`. This is fixed by adding a parenthesis to the suggestion given in `check_simplify_not` when the boolean expression is casted. changelog: [`nonminimal_bool`]: fix incorrect suggestion for `!(a >= b) as i32 == c` |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||