rust/clippy_lints
bors 20b085d500 Auto merge of #12745 - y21:collapsible_match_or_pat, r=llogiq
Suggest collapsing nested or patterns if the MSRV allows it

Nested `or` patterns have been stable since 1.53, so we should be able to suggest `Some(1 | 2)` if the MSRV isn't set below that.

This change adds an msrv check and also moves it to `matches/mod.rs`, because it's also needed by `redundant_guards`.

changelog: [`collapsible_match`]: suggest collapsing nested or patterns if the MSRV allows it
2024-05-02 12:57:59 +00:00
..
src Auto merge of #12745 - y21:collapsible_match_or_pat, r=llogiq 2024-05-02 12:57:59 +00:00
Cargo.toml Bump Clippy version -> 0.1.80 2024-05-02 14:21:19 +02:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.