You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
catch_unwind is now safe to use with "foreign" exceptions, although the implementation currently just aborts. We would like to permit disposing, and/or catching & rethrowing.
The converse, C++ or other runtimes catching Rust panic objects and either disposing or rethrowing, is not yet defined. We currently always abort.
Summary
Working out the rules for cross-language unwinding as well as longjmp.
Status
This section lists the efforts that we are working towards.
"C-unwind" ABI
The "C-unwind" ABI allows you to invoke foreign functions that may unwind using the native ABI.
Interaction with
catch_unwind
We need to define what happens when foreign exceptions interact with
catch_unwind
.longjmp compatibility
We need to define the conditions in which it is legal to longjmp through Rust frames. We've done some initial conversation about this.
Links
#project-ffi-unwind
The text was updated successfully, but these errors were encountered: