rust/compiler/rustc_mir_build/src
bors 6bb6b816bf Auto merge of #122046 - Nadrieril:integrate-or-pats2, r=matthewjasper
match lowering: handle or-patterns one layer at a time

`create_or_subcandidates` and `merge_trivial_subcandidates` both call themselves recursively to handle nested or-patterns, which is hard to follow. In this PR I avoid the need for that; we now process a single "layer" of or-patterns at a time.

By calling back into `match_candidates`, we only need to expand one layer at a time. Conversely, since we always try to simplify a layer that we just expanded (thanks to https://github.com/rust-lang/rust/pull/123067), we only have to merge one layer at a time.

r? `@matthewjasper`
2024-04-01 12:31:27 +00:00
..
build Auto merge of #122046 - Nadrieril:integrate-or-pats2, r=matthewjasper 2024-04-01 12:31:27 +00:00
thir Implement mut ref/mut ref mut 2024-03-27 09:53:23 -04:00
check_unsafety.rs Implement mut ref/mut ref mut 2024-03-27 09:53:23 -04:00
errors.rs Rename RustcMatchCheckCtxt -> RustcPatCtxt 2024-03-13 14:07:44 +01:00
lib.rs Auto merge of #122721 - oli-obk:merge_queries, r=davidtwco 2024-03-25 01:33:46 +00:00
lints.rs Change InlineAsm to allow multiple targets instead 2024-02-24 18:50:09 +00:00