File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 130
130
//! | [`Box<U>`] (specifically, only `Box<U, Global>`) | when `U: Sized` |
131
131
//! | `&U` | when `U: Sized` |
132
132
//! | `&mut U` | when `U: Sized` |
133
- //! | `fn`, `extern "C" fn`[^extern_fn] | always |
133
+ //! | `fn`, `extern "C" fn`[^extern_fn][^unsafe_fn] | always |
134
134
//! | [`num::NonZero*`] | always |
135
135
//! | [`ptr::NonNull<U>`] | when `U: Sized` |
136
136
//! | `#[repr(transparent)]` struct around one of the types in this list. | when it holds for the inner type |
137
137
//!
138
138
//! [^extern_fn]: this remains true for any argument/return types and any other ABI: `extern "abi" fn` (_e.g._, `extern "system" fn`)
139
+ //! [^unsafe_fn]: this also remains true for the `unsafe` variants `unsafe fn` or `unsafe extern "abi" fn`
139
140
//!
140
141
//! Under some conditions the above types `T` are also null pointer optimized when wrapped in a [`Result`][result_repr].
141
142
//!
You can’t perform that action at this time.
0 commit comments