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
..
2024-04-24 13:12:33 +01:00
2024-04-27 10:54:35 +03:00
2024-04-27 10:54:35 +03:00
2024-04-27 10:54:35 +03:00
2024-04-24 13:12:33 +01:00
2024-04-24 13:12:33 +01:00
2024-04-11 22:24:47 +02:00