diff options
| author | Ralf Jung <post@ralfj.de> | 2023-08-21 09:57:10 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-08-24 13:28:26 +0200 |
| commit | 4c53783f3c27ce30119018c752bdc805222409da (patch) | |
| tree | d75e9c3394a9df4d3bb4c2f70e547219c872578f /tests/mir-opt/basic_assignment.main.ElaborateDrops.diff | |
| parent | 0b31792ef1c15538b07c7b83585dc2fb371c239f (diff) | |
| download | rust-4c53783f3c27ce30119018c752bdc805222409da.tar.gz rust-4c53783f3c27ce30119018c752bdc805222409da.zip | |
when terminating during unwinding, show the reason why
Diffstat (limited to 'tests/mir-opt/basic_assignment.main.ElaborateDrops.diff')
| -rw-r--r-- | tests/mir-opt/basic_assignment.main.ElaborateDrops.diff | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mir-opt/basic_assignment.main.ElaborateDrops.diff b/tests/mir-opt/basic_assignment.main.ElaborateDrops.diff index 15269fb8f6c..2b6e0fe489a 100644 --- a/tests/mir-opt/basic_assignment.main.ElaborateDrops.diff +++ b/tests/mir-opt/basic_assignment.main.ElaborateDrops.diff @@ -47,7 +47,7 @@ bb2 (cleanup): { _5 = move _6; -- drop(_6) -> [return: bb6, unwind terminate]; +- drop(_6) -> [return: bb6, unwind terminate (panic in a destructor during cleanup)]; + goto -> bb6; } @@ -71,12 +71,12 @@ } bb6 (cleanup): { -- drop(_5) -> [return: bb7, unwind terminate]; +- drop(_5) -> [return: bb7, unwind terminate (panic in a destructor during cleanup)]; + goto -> bb7; } bb7 (cleanup): { -- drop(_4) -> [return: bb8, unwind terminate]; +- drop(_4) -> [return: bb8, unwind terminate (panic in a destructor during cleanup)]; + goto -> bb8; } |
