rust/tests/mir-opt/building
bors ff55fa3026 Auto merge of #113124 - nbdd0121:eh_frame, r=cjgillot
Add MIR validation for unwind out from nounwind functions + fixes to make validation pass

`@Nilstrieb`  This is the MIR validation you asked in https://github.com/rust-lang/rust/pull/112403#discussion_r1222739722.

Two passes need to be fixed to get the validation to pass:
* `RemoveNoopLandingPads` currently unconditionally introduce a resume block (even there is none to begin with!), changed to not do that
* Generator state transform introduces a `assert` which may unwind, and its drop elaboration also introduces many new `UnwindAction`s, so in this case run the AbortUnwindingCalls after the transformation.

I believe this PR should also fix Rust-for-Linux/linux#1016, cc `@ojeda`

r? `@Nilstrieb`
2023-08-20 09:58:52 +00:00
..
custom custom_mir: change Call() terminator syntax to something more readable 2023-08-19 22:41:33 +02:00
async_await.a-{closure#0}.generator_resume.0.mir Run AbortUnwindingCalls after generator transform 2023-08-18 13:51:42 +01:00
async_await.b-{closure#0}.generator_resume.0.mir Run AbortUnwindingCalls after generator transform 2023-08-18 13:51:42 +01:00
async_await.rs Transform async ResumeTy in generator transform 2023-01-19 09:03:05 +01: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 Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04: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 Also assume wrap-around discriminants in as MIR building 2023-05-18 10:28:36 -07: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 Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
issue_49232.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue_101867.main.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
issue_101867.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue_110508.{impl#0}-BAR.built.after.mir rename constants in mir dump test 2023-07-05 04:28:45 +00:00
issue_110508.{impl#0}-SELF_BAR.built.after.mir rename constants in mir dump test 2023-07-05 04:28:45 +00:00
issue_110508.rs rename constants in mir dump test 2023-07-05 04:28:45 +00:00
match_false_edges.full_tested_match2.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
match_false_edges.full_tested_match.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
match_false_edges.main.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
match_false_edges.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
receiver_ptr_mutability.main.built.after.mir Rename adjustment::PointerCast and variants using it to PointerCoercion 2023-07-07 18:17:16 +02:00
receiver_ptr_mutability.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
shifts.rs Demonstration test for MIR building of checked shift operators 2023-03-22 01:37:11 -07: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 Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
simple_match.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
storage_live_dead_in_statics.rs Move /src/test to /tests 2023-01-11 09:32:08 +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 Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
uniform_array_move_out.move_out_from_end.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
uniform_array_move_out.rs Remove uses of box_syntax in rustc and tools 2023-03-12 13:19:46 +00:00