Skip to content

Commit 6040827

Browse files
authored
Update README.md
1 parent 882dc2a commit 6040827

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,15 @@ with that code, please, [open a issue](https://github.com/jhg/opaque-pointer-rs/
6969

7070
## Panic & unwind in FFI functions
7171

72-
See [comment in Rust issue #58794](https://github.com/rust-lang/rust/issues/58794#issuecomment-468109183)
72+
As a good resume see [comment in gtk-rs issue #78](https://github.com/gtk-rs/gtk-rs/issues/78#issuecomment-753841968):
73+
> Currently any unwinding across extern "C" functions is UB, even if all those functions happens
74+
> to be implemented in Rust. That's part of what that WG is working on solving.
75+
> For example this adds support for an extern "C-unwind" ABI that explicitly allows unwinding (and AFAIU causes
76+
> unwinding through extern "C" to abort as it should).
77+
78+
And the [mentioned pull request #76570 of Rust](https://github.com/rust-lang/rust/pull/76570).
79+
80+
Also see [comment in Rust issue #58794](https://github.com/rust-lang/rust/issues/58794#issuecomment-468109183)
7381
and [Rust issue #58760](https://github.com/rust-lang/rust/issues/58760):
7482
> The default was changed to abort-by-default in extern functions in this PR.
7583
> This is tracking the stabilization of the #[unwind(allowed)] (and #[unwind(abort)]) attributes.

0 commit comments

Comments
 (0)