We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7234992 commit d65ccddCopy full SHA for d65ccdd
library/core/src/intrinsics/mod.rs
@@ -2788,7 +2788,11 @@ pub const fn align_of<T>() -> usize;
2788
/// Therefore, implementations must not require the user to uphold
2789
/// any safety invariants.
2790
///
2791
+/// This intrinsic can only be evaluated at compile-time, and should appear
2792
+/// constants or inline const blocks.
2793
+///
2794
/// The stabilized version of this intrinsic is [`core::mem::offset_of`].
2795
+/// This intrinsic is also a lang item so `offset_of!` can desugar to calls to it.
2796
#[rustc_nounwind]
2797
#[unstable(feature = "core_intrinsics", issue = "none")]
2798
#[rustc_const_unstable(feature = "core_intrinsics", issue = "none")]
0 commit comments