Skip to content

Commit c245983

Browse files
committed
Auto merge of rust-lang#117537 - GKFX:offset-of-enum-feature, r=cjgillot
Feature gate enums in offset_of As requested at rust-lang#106655 (comment), put enums in offset_of behind their own feature gate. `@rustbot` label F-offset_of
2 parents bf90b23 + 6070557 commit c245983

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/mem/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,7 @@ impl<T> SizedTypeProperties for T {}
13581358
///
13591359
/// ```
13601360
/// #![feature(offset_of)]
1361+
/// # #![cfg_attr(not(bootstrap), feature(offset_of_enum))]
13611362
///
13621363
/// use std::mem;
13631364
/// #[repr(C)]

0 commit comments

Comments
 (0)