diff options
| author | bors <bors@rust-lang.org> | 2024-05-02 12:57:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-02 12:57:59 +0000 |
| commit | 20b085d500dfba5afe0869707bf357af3afe20be (patch) | |
| tree | bee37d706c3a440774793bac1a175a31ab1c5d96 /tests/coverage/branch/let-else.coverage | |
| parent | c36918329f2a313ca201f63de7b8f960a32df307 (diff) | |
| parent | 790fb9396a14e4686ff4b5ab88d91577cffe1d44 (diff) | |
| download | rust-20b085d500dfba5afe0869707bf357af3afe20be.tar.gz rust-20b085d500dfba5afe0869707bf357af3afe20be.zip | |
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
Diffstat (limited to 'tests/coverage/branch/let-else.coverage')
0 files changed, 0 insertions, 0 deletions
