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
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
enum_cast.boo.built.after.mir
enum_cast.droppy.built.after.mir
enum_cast.far.built.after.mir
enum_cast.foo.built.after.mir
enum_cast.offsetty.built.after.mir
enum_cast.rs
enum_cast.signy.built.after.mir
enum_cast.unsigny.built.after.mir
issue_49232.main.built.after.mir Allocate candidate vectors as we sort them 2024-03-02 18:33:19 +01:00
issue_49232.rs
issue_101867.main.built.after.mir Don't bother to save a block 2024-02-17 20:21:57 +01:00
issue_101867.rs
issue_110508.{impl#0}-BAR.built.after.mir
issue_110508.{impl#0}-SELF_BAR.built.after.mir
issue_110508.rs
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
receiver_ptr_mutability.main.built.after.mir
receiver_ptr_mutability.rs
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
shifts.shift_unsigned.built.after.mir
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
storage_live_dead_in_statics.rs
storage_live_dead_in_statics.XXX.built.after.mir
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
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
while_storage.while_loop.PreCodegen.after.panic-unwind.mir