diff options
| author | bors <bors@rust-lang.org> | 2023-11-05 13:44:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-05 13:44:59 +0000 |
| commit | 992943dbaeee9d9829e82a95b788ab845ad38d0c (patch) | |
| tree | 58557fc9acb43fe01f96020691e1beee5a86af32 /compiler/rustc_feature | |
| parent | 04817ff00cfa1ec00a9babcb2ade1e3f2874d9bd (diff) | |
| parent | 00a9ed34b1afad45c13c58acc8441ab9442d2cdd (diff) | |
Auto merge of #117537 - GKFX:offset-of-enum-feature, r=cjgillot
Feature gate enums in offset_of As requested at https://github.com/rust-lang/rust/issues/106655#issuecomment-1790815262, put enums in offset_of behind their own feature gate. `@rustbot` label F-offset_of
Diffstat (limited to 'compiler/rustc_feature')
| -rw-r--r-- | compiler/rustc_feature/src/unstable.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs index 11782e33d84..64b5a7d2921 100644 --- a/compiler/rustc_feature/src/unstable.rs +++ b/compiler/rustc_feature/src/unstable.rs @@ -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 exhaustive integer pattern matching on `usize` and `isize`. |
