about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-weird-queries.js
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2023-11-28 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2023-11-28 21:11:24 +0100
commit5161b22143bf9a726cfd69d19bef11552d0ed519 (patch)
treefc3a4ebf1c4fa689eff178e84cdddc79fc8b7013 /tests/rustdoc-js-std/parser-weird-queries.js
parent5facb422f8a5a61df515572fe79b02433639d565 (diff)
downloadrust-5161b22143bf9a726cfd69d19bef11552d0ed519.tar.gz
rust-5161b22143bf9a726cfd69d19bef11552d0ed519.zip
Fix coroutine validation for mixed panic strategy
Validation introduced in #113124 allows UnwindAction::Continue and
TerminatorKind::Resume to occur only in functions with ABI that can
unwind. The function ABI depends on the panic strategy, which can vary
across crates.

Usually MIR is built and validated in the same crate. The coroutine drop
glue thus far was an exception. As a result validation could fail when
mixing different panic strategies.

Avoid the problem by executing AbortUnwindingCalls along with the
validation.
Diffstat (limited to 'tests/rustdoc-js-std/parser-weird-queries.js')
0 files changed, 0 insertions, 0 deletions