diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-06-07 22:22:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-07 22:22:56 +0200 |
| commit | 00db3457a606b57d104800a8e4a744ab955426e9 (patch) | |
| tree | fba2a3bc25b778052337c7ee479b9d668c43db38 | |
| parent | 2c8a9cccd9497d20d3f2a30c1370dd53c8f21296 (diff) | |
| parent | a08f6f10d4ab94d53793480782e9e939b48a3ebe (diff) | |
| download | rust-00db3457a606b57d104800a8e4a744ab955426e9.tar.gz rust-00db3457a606b57d104800a8e4a744ab955426e9.zip | |
Rollup merge of #141447 - y86-dev:option-layout-docs, r=RalfJung
Document representation of `Option<unsafe fn()>` https://rust-lang.zulipchat.com/#narrow/channel/136281-t-opsem/topic/Option.20Layout.20with.20.60fn.60.20pointers/with/520055652
| -rw-r--r-- | library/core/src/option.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 675556b07a8..c04754848b4 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -137,7 +137,7 @@ //! | [`ptr::NonNull<U>`] | when `U: Sized` | //! | `#[repr(transparent)]` struct around one of the types in this list. | when it holds for the inner type | //! -//! [^extern_fn]: this remains true for any argument/return types and any other ABI: `extern "abi" fn` (_e.g._, `extern "system" fn`) +//! [^extern_fn]: this remains true for `unsafe` variants, any argument/return types, and any other ABI: `[unsafe] extern "abi" fn` (_e.g._, `extern "system" fn`) //! //! Under some conditions the above types `T` are also null pointer optimized when wrapped in a [`Result`][result_repr]. //! |
