about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2023-11-09 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2023-11-14 08:23:58 +0100
commit78da5776509f4e646a664de3ee7041f8008d5931 (patch)
tree003963619ebb79fe1f0eb86e2a4a601e8fedc48b /compiler/rustc_query_impl/src
parent287ae4db75228ef8260a112bcc65245f05e18340 (diff)
downloadrust-78da5776509f4e646a664de3ee7041f8008d5931.tar.gz
rust-78da5776509f4e646a664de3ee7041f8008d5931.zip
Custom MIR: Support cleanup blocks
Cleanup blocks are declared with `bb (cleanup) = { ... }`.

`Call` and `Drop` terminators take an additional argument describing the
unwind action, which is one of the following:

* `UnwindContinue()`
* `UnwindUnreachable()`
* `UnwindTerminate(reason)`, where reason is `ReasonAbi` or `ReasonInCleanup`
* `UnwindCleanup(block)`

Also support unwind resume and unwind terminate terminators:

* `UnwindResume()`
* `UnwindTerminate(reason)`
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions