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.
2 parents afa2e61 + 00d1c86 commit cc0b02dCopy full SHA for cc0b02d
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