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
This commit is contained in:
commit
992943dbae
10 changed files with 70 additions and 5 deletions
|
@ -1358,6 +1358,7 @@ impl<T> SizedTypeProperties for T {}
|
|||
///
|
||||
/// ```
|
||||
/// #![feature(offset_of)]
|
||||
/// # #![cfg_attr(not(bootstrap), feature(offset_of_enum))]
|
||||
///
|
||||
/// use std::mem;
|
||||
/// #[repr(C)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue