Skip to content

Commit

Permalink
Document that Option<extern "abi" fn> discriminant elision applies …
Browse files Browse the repository at this point in the history
…for any ABI

The current phrasing was not very clear on that aspect.
  • Loading branch information
danielhenrymantilla authored Mar 18, 2022
1 parent a8adf76 commit 156734d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/core/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@
//! * [`Box<U>`]
//! * `&U`
//! * `&mut U`
//! * `fn`, `extern "C" fn`
//! * `fn`, `extern "C" fn`[^extern_fn]
//! * [`num::NonZero*`]
//! * [`ptr::NonNull<U>`]
//! * `#[repr(transparent)]` struct around one of the types in this list.
//!
//! [^extern_fn]: this remains true for any other ABI: `extern "abi" fn` (_e.g._, `extern "system" fn`)
//!
//! [`Box<U>`]: ../../std/boxed/struct.Box.html
//! [`num::NonZero*`]: crate::num
//! [`ptr::NonNull<U>`]: crate::ptr::NonNull
Expand Down

0 comments on commit 156734d

Please sign in to comment.