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 35ea63b commit 4699a81Copy full SHA for 4699a81
library/core/src/intrinsics/mod.rs
@@ -2770,7 +2770,11 @@ pub const fn align_of<T>() -> usize;
2770
/// Therefore, implementations must not require the user to uphold
2771
/// any safety invariants.
2772
///
2773
+/// This intrinsic can only be evaluated at compile-time, and should appear
2774
+/// constants or inline const blocks.
2775
+///
2776
/// The stabilized version of this intrinsic is [`core::mem::offset_of`].
2777
+/// This intrinsic is also a lang item so `offset_of!` can desugar to calls to it.
2778
#[rustc_nounwind]
2779
#[unstable(feature = "core_intrinsics", issue = "none")]
2780
#[rustc_const_unstable(feature = "core_intrinsics", issue = "none")]
0 commit comments