rust/compiler/rustc_mir_build/src
Matthias Krüger d846e9252c
Rollup merge of #127917 - Zalathar:after-or, r=Nadrieril
match lowering: Split `finalize_or_candidate` into more coherent methods

I noticed that `finalize_or_candidate` was responsible for several different postprocessing tasks, making it difficult to understand.

This PR aims to clean up some of the confusion by:
- Extracting `remove_never_subcandidates` from `merge_trivial_subcandidates`
- Extracting `test_remaining_match_pairs_after_or` from `finalize_or_candidate`
- Taking what remains of `finalize_or_candidate`, and inlining it into its caller

---
Reviewing individual commits and ignoring whitespace is recommended.

Most of the large-looking changes are just moving existing code around, mostly unaltered.

r? ``@Nadrieril``
2024-07-20 13:24:54 +02:00
..
build Rollup merge of #127917 - Zalathar:after-or, r=Nadrieril 2024-07-20 13:24:54 +02:00
thir remove saw_const_match_error; check if pattern contains an Error instead 2024-07-18 11:58:16 +02:00
check_unsafety.rs Add TODO comment to unsafe env modification 2024-06-12 17:51:18 +02:00
errors.rs avoid creating an Instance only to immediately disassemble it again 2024-07-18 11:58:16 +02:00
lib.rs Use tidy to sort crate attributes for all compiler crates. 2024-06-12 15:49:10 +10:00
lints.rs Fix unconditional recursion lint wrt tail calls 2024-07-07 17:11:05 +02:00