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 e79b2f7 commit 7f315a6Copy full SHA for 7f315a6
core/src/mem/mod.rs
@@ -1315,9 +1315,9 @@ impl<T> SizedTypeProperties for T {}
1315
///
1316
/// assert_eq!(mem::offset_of!(NestedA, b.0), 0);
1317
/// ```
1318
-#[unstable(feature = "offset_of", issue = "106655")]
1319
-#[rustc_builtin_macro]
1320
#[cfg(not(bootstrap))]
+#[unstable(feature = "offset_of", issue = "106655")]
+#[allow_internal_unstable(builtin_syntax)]
1321
pub macro offset_of($Container:ty, $($fields:tt).+ $(,)?) {
1322
- /* compiler built-in */
+ builtin # offset_of($Container, $($fields).+)
1323
}
0 commit comments