We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00ddbee commit aef2c4bCopy full SHA for aef2c4b
core/src/mem/mod.rs
@@ -1340,8 +1340,8 @@ impl<T> SizedTypeProperties for T {}
1340
/// assert_eq!(mem::offset_of!(Option<&u8>, Some.0), 0);
1341
/// ```
1342
#[stable(feature = "offset_of", since = "1.77.0")]
1343
-#[allow_internal_unstable(builtin_syntax, hint_must_use)]
+#[allow_internal_unstable(builtin_syntax)]
1344
pub macro offset_of($Container:ty, $($fields:expr)+ $(,)?) {
1345
// The `{}` is for better error messages
1346
- crate::hint::must_use({builtin # offset_of($Container, $($fields)+)})
+ {builtin # offset_of($Container, $($fields)+)}
1347
}
0 commit comments