Skip to content

Commit

Permalink
ABI compatibility: mention Result guarantee
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 21, 2024
1 parent 93f5e21 commit db6427b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1761,6 +1761,8 @@ mod prim_ref {}
/// - `i32` is ABI-compatible with `NonZero<i32>`, and similar for all other integer types.
/// - If `T` is guaranteed to be subject to the [null pointer
/// optimization](option/index.html#representation), then `T` and `Option<T>` are ABI-compatible.
/// Furthermore, if `U` satisfies the requirements [outlined here](result/index.html#representation),
/// then `T` and `Result<T, U>` and `Result<U, T>` are all ABI-compatible.
///
/// Furthermore, ABI compatibility satisfies the following general properties:
///
Expand Down

0 comments on commit db6427b

Please sign in to comment.