diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-26 17:06:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-26 17:06:41 +0100 |
| commit | 94e8c6c334e559ccec22f11d2ed9ea695b537f1e (patch) | |
| tree | cf3f16ad73b0508395fce25cc66b189b2d7fee15 /compiler/rustc_interface/src/errors.rs | |
| parent | 1fd3ee0660e7de642c2885b0b90e1bf10cd694ea (diff) | |
| parent | d1d9aa3108aaff42a1b71040d02012001cf53ae0 (diff) | |
| download | rust-94e8c6c334e559ccec22f11d2ed9ea695b537f1e.tar.gz rust-94e8c6c334e559ccec22f11d2ed9ea695b537f1e.zip | |
Rollup merge of #123067 - Nadrieril:always-simplify-or, r=oli-obk
match lowering: consistently merge simple or-patterns There are two places where we expand or-patterns in match lowering: the main one is `test_candidates_with_or`, and there's one in `match_candidates` that's an optimization for the simple case where the whole pattern is just one or-pattern. To reduce duplication, we merge or-pattern alternatives into a single block when possible, but we only to that in `test_candidates_with_or`. This PR fixes this oversight and merges them in `match_candidates` too. This is a part of splitting up https://github.com/rust-lang/rust/pull/122046 into smaller bits.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
