1
Fork 0

Stabilize simple offset_of

This commit is contained in:
George Bateman 2023-12-05 22:15:26 +00:00
parent 88189a71e4
commit 615946db4f
No known key found for this signature in database
GPG key ID: C417AA9C4039EFCF
30 changed files with 134 additions and 49 deletions

View file

@ -550,6 +550,8 @@ declare_features! (
(unstable, object_safe_for_dispatch, "1.40.0", Some(43561)),
/// Allows using enums in offset_of!
(unstable, offset_of_enum, "1.75.0", Some(106655)),
/// Allows using multiple nested field accesses in offset_of!
(unstable, offset_of_nested, "CURRENT_RUSTC_VERSION", Some(106655)),
/// Allows using `#[optimize(X)]`.
(unstable, optimize_attribute, "1.34.0", Some(54882)),
/// Allows macro attributes on expressions, statements and non-inline modules.