rust/library/panic_unwind/src
bors 41aaa90c67 Auto merge of #70212 - Amanieu:catch_foreign, r=Mark-Simulacrum
Abort when foreign exceptions are caught by catch_unwind

Prior to this PR, foreign exceptions were not caught by catch_unwind, and instead passed through invisibly. This represented a painful soundness hole in some libraries ([take_mut](https://github.com/Sgeo/take_mut/blob/master/src/lib.rs#L37)), which relied on `catch_unwind` to handle all possible exit paths from a closure.

With this PR, foreign exceptions are now caught by `catch_unwind` and will trigger an abort since catching foreign exceptions is currently UB according to the latest proposals by the FFI unwind project group.

cc @rust-lang/wg-ffi-unwind
2020-08-28 01:20:17 +00:00
..
dwarf Abort when catch_unwind catches a foreign exception 2020-08-27 21:08:30 +01:00
dummy.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
emcc.rs Abort when catch_unwind catches a foreign exception 2020-08-27 21:08:30 +01:00
gcc.rs Abort when catch_unwind catches a foreign exception 2020-08-27 21:08:30 +01:00
hermit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
lib.rs Auto merge of #70212 - Amanieu:catch_foreign, r=Mark-Simulacrum 2020-08-28 01:20:17 +00:00
miri.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
seh.rs Abort when catch_unwind catches a foreign exception 2020-08-27 21:08:30 +01:00