Skip to content

Commit

Permalink
Merge #526
Browse files Browse the repository at this point in the history
526: Minor fixes r=pietroalbini a=Veykril



Co-authored-by: Lukas Wirth <[email protected]>
  • Loading branch information
bors-ferrocene[bot] and Veykril authored Sep 27, 2024
2 parents 65b75c3 + 9772235 commit dff3681
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/ffi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ The following :t:`[ABI]s` are supported:
``extern "system"`` - The operating system-dependent :t:`ABI`, referred to as
:dt:`external system ABI`.

* :dp:`fls_NQAzj5ai1La5`
``extern "system-unwind"`` - The same as ``extern "system"`` with the
addition that unwinding across FFI is permitted.

:dp:`fls_r2drzo3dixe4`
A :t:`function` without an explicit :t:`ABI` has implicit :t:`Rust ABI`, unless
it appears within an :t:`external block`.
Expand Down Expand Up @@ -118,8 +122,8 @@ include, but may not be limited to, the following:

:dp:`fls_M4LqHf8hbPA8`
It is undefined behavior when a foreign exception crosses a
:t:`foreign function interface` boundary with an :t:`ABI` other than
``extern "C-unwind"``.
:t:`foreign function interface` boundary with an :t:`ABI` that does not end in
``-unwind``.

.. rubric:: Examples

Expand Down
2 changes: 1 addition & 1 deletion src/values.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ All :t:`[path]s` that refer to a :t:`static` refer to the same memory location.
A :t:`static` is not :t:`dropped` during :t:`destruction`.

:dp:`fls_dowxbphqvk3n`
A :t:`mutable static` whose :t:`type` is not subject to
An :t:`immutable static` whose :t:`type` is not subject to
:t:`interior mutability` may reside in read-only memory.

.. rubric:: Undefined Behavior
Expand Down

0 comments on commit dff3681

Please sign in to comment.