1
Fork 0

Feature gate enums in offset_of

This commit is contained in:
George Bateman 2023-11-03 13:16:47 +00:00
parent 1d6f05fd37
commit 7c09b99ebb
No known key found for this signature in database
GPG key ID: C417AA9C4039EFCF
9 changed files with 68 additions and 4 deletions

View file

@ -526,6 +526,8 @@ declare_features! (
/// In that case, `dyn Trait: Trait` does not hold. Moreover, coercions and
/// casts in safe Rust to `dyn Trait` for such a `Trait` is also forbidden.
(unstable, object_safe_for_dispatch, "1.40.0", Some(43561), None),
/// Allows using enums in offset_of!
(unstable, offset_of_enum, "CURRENT_RUSTC_VERSION", Some(106655), None),
/// Allows using `#[optimize(X)]`.
(unstable, optimize_attribute, "1.34.0", Some(54882), None),
/// Allows using `#![plugin(myplugin)]`.