Skip to content

Commit 8a71925

Browse files
committed
reference: document unwinding unsafety issues
1 parent 768a7e1 commit 8a71925

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/reference.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,9 @@ exposing an API making it possible for it to occur in safe code.
11701170
* A discriminant in an `enum` not included in the type definition
11711171
* A value in a `char` which is a surrogate or above `char::MAX`
11721172
* non-UTF-8 byte sequences in a `str`
1173+
* Unwinding into Rust from foreign code or unwinding from Rust into foreign
1174+
code. Rust's failure system is not compatible with exception handling in
1175+
other languages. Unwinding must be caught and handled at FFI boundaries.
11731176

11741177
##### Behaviour not considered unsafe
11751178

0 commit comments

Comments
 (0)