rust/tests/mir-opt/building
Matthias Krüger e6ba504029
Rollup merge of #121908 - Nadrieril:dynamic-variant-collection, r=matthewjasper
match lowering: don't collect test alternatives ahead of time

I'm very happy with this one. Before this, when sorting candidates into the possible test branches, we manually computed `usize` indices to determine in which branch each candidate goes. To make this work we had a first pass that collected the possible alternatives we'd have to deal with, and a second pass that actually sorts the candidates.

In this PR, I replace `usize` indices with a dedicated enum. This makes `sort_candidates` easier to follow, and we don't need the first pass anymore.

r? ``@matthewjasper``
2024-03-13 06:41:21 +01:00
..
custom MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way 2024-03-10 14:59:41 +01:00
async_await.a-{closure#0}.coroutine_resume.0.mir s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
async_await.b-{closure#0}.coroutine_resume.0.mir Start blocks eagerly 2024-02-12 17:37:05 +01:00
async_await.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
enum_cast.bar.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.boo.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.droppy.built.after.mir make MIR less verbose 2023-08-24 14:26:26 +02:00
enum_cast.far.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.foo.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.offsetty.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
enum_cast.signy.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.unsigny.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
issue_49232.main.built.after.mir Allocate candidate vectors as we sort them 2024-03-02 18:33:19 +01:00
issue_49232.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
issue_101867.main.built.after.mir Don't bother to save a block 2024-02-17 20:21:57 +01:00
issue_101867.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
issue_110508.{impl#0}-BAR.built.after.mir Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
issue_110508.{impl#0}-SELF_BAR.built.after.mir Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
issue_110508.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
logical_or_in_conditional.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
logical_or_in_conditional.test_complex.built.after.mir Make the success arms of if lhs || rhs meet up in a separate block 2024-02-29 20:24:43 +11:00
logical_or_in_conditional.test_or.built.after.mir Make the success arms of if lhs || rhs meet up in a separate block 2024-02-29 20:24:43 +11:00
match_false_edges.full_tested_match2.built.after.mir Allocate candidate vectors as we sort them 2024-03-02 18:33:19 +01:00
match_false_edges.full_tested_match.built.after.mir Allocate candidate vectors as we sort them 2024-03-02 18:33:19 +01:00
match_false_edges.main.built.after.mir Don't bother to save a block 2024-02-17 20:21:57 +01:00
match_false_edges.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
receiver_ptr_mutability.main.built.after.mir Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
receiver_ptr_mutability.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
shifts.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
shifts.shift_signed.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
shifts.shift_unsigned.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
simple_match.match_bool.built.after.mir Don't bother to save a block 2024-02-17 20:21:57 +01:00
simple_match.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
storage_live_dead_in_statics.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
storage_live_dead_in_statics.XXX.built.after.mir Rename adjustment::PointerCast and variants using it to PointerCoercion 2023-07-07 18:17:16 +02:00
uniform_array_move_out.move_out_by_subslice.built.after.mir Don't bother to save a block 2024-02-17 20:21:57 +01:00
uniform_array_move_out.move_out_from_end.built.after.mir Don't bother to save a block 2024-02-17 20:21:57 +01:00
uniform_array_move_out.rs Allow to run filecheck in mir-opt tests. 2023-10-19 15:51:52 +00:00
while_storage.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
while_storage.while_loop.PreCodegen.after.panic-abort.mir FileCheck while_storage. 2023-10-31 22:55:14 +00:00
while_storage.while_loop.PreCodegen.after.panic-unwind.mir FileCheck while_storage. 2023-10-31 22:55:14 +00:00