mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-04 17:08:38 +00:00
Add a new lint for comparison chains changelog: Adds a new lint: `comparison_chain`. `comparison_chain` lints all `if` conditional chains where all the conditions are binary comparisons on the same two operands and will suggest a rewrite with `match`. Closes #4531.