about summary refs log tree commit diff
path: root/tests/rustdoc-gui/sidebar-source-code.goml
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-01 12:31:27 +0000
committerbors <bors@rust-lang.org>2024-04-01 12:31:27 +0000
commit6bb6b816bfcf9e26fac5175e3e907dcefe5ecdbc (patch)
tree873d7f9cde1a1fde3b1bf74c51b4127aa1b431dc /tests/rustdoc-gui/sidebar-source-code.goml
parent3d5528c287860b918e178a34f04ff903325571b3 (diff)
parent7410f78e9a3a8a47bea05bb2c52e0ac307712a68 (diff)
downloadrust-6bb6b816bfcf9e26fac5175e3e907dcefe5ecdbc.tar.gz
rust-6bb6b816bfcf9e26fac5175e3e907dcefe5ecdbc.zip
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`
Diffstat (limited to 'tests/rustdoc-gui/sidebar-source-code.goml')
0 files changed, 0 insertions, 0 deletions