]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #97888 - hoodmane:emscripten-eh-personality, r=Amanieu
authorYuki Okushi <jtitor@2k36.org>
Fri, 10 Jun 2022 08:22:30 +0000 (17:22 +0900)
committerGitHub <noreply@github.com>
Fri, 10 Jun 2022 08:22:30 +0000 (17:22 +0900)
commit20be5da7122e5fbd9b4acd815a6f69f09363aa8d
tree39a6ae4aae4fa2dee76aefbdab4ff0c7a20b4bfb
parenta652a4303f39c7e33040b7a595627b04e6c34abf
parentd2d205d0a87861aaa2ce3a39a65afc35a2beb55a
Rollup merge of #97888 - hoodmane:emscripten-eh-personality, r=Amanieu

Don't use __gxx_personality_v0 in panic_unwind on emscripten target

This resolves #85821. See also the discussion here:
https://github.com/emscripten-core/emscripten/issues/17128

The consensus seems to be that rust_eh_personality is never invoked.
I patched __gxx_personality_v0 to log invocations and then ran
various panic tests and it was never called, so this analysis matches
what seems to happen in practice. This replaces the definition with
an abort, modeled on the structured exception handling implementation.