Complete doc.
This commit is contained in:
parent
63a7712552
commit
aeb9332b28
1 changed files with 4 additions and 0 deletions
|
|
@ -2798,7 +2798,11 @@ pub const fn align_of<T>() -> usize;
|
|||
/// Therefore, implementations must not require the user to uphold
|
||||
/// any safety invariants.
|
||||
///
|
||||
/// This intrinsic can only be evaluated at compile-time, and should only appear in
|
||||
/// constants or inline const blocks.
|
||||
///
|
||||
/// The stabilized version of this intrinsic is [`core::mem::offset_of`].
|
||||
/// This intrinsic is also a lang item so `offset_of!` can desugar to calls to it.
|
||||
#[rustc_nounwind]
|
||||
#[unstable(feature = "core_intrinsics", issue = "none")]
|
||||
#[rustc_const_unstable(feature = "core_intrinsics", issue = "none")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue