Skip to content

Commit

Permalink
Unrolled build for rust-lang#130653
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#130653 - RalfJung:result-abi-compat, r=traviscross

ABI compatibility: mention Result guarantee

This has been already documented in https://doc.rust-lang.org/std/result/index.html#representation, but for `Option` we mirrored those docs in the "ABI compatibility" section, so let's do the same here.

Cc ``@workingjubilee`` ``@rust-lang/lang``
  • Loading branch information
rust-timer authored Sep 22, 2024
2 parents 1d68e6d + b94f293 commit 34fb5bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/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 34fb5bb

Please sign in to comment.