diff --git a/core/src/mem/mod.rs b/core/src/mem/mod.rs index 74b198c4fdd41..4c4c31eaf0a82 100644 --- a/core/src/mem/mod.rs +++ b/core/src/mem/mod.rs @@ -1254,12 +1254,10 @@ impl SizedTypeProperties for T {} /// /// Nested field accesses may be used, but not array indexes. /// -/// Enum variants may be traversed as if they were fields. Variants themselves do +/// If the nightly-only feature `offset_of_enum` is enabled, +/// variants may be traversed as if they were fields. Variants themselves do /// not have an offset. /// -/// However, on stable only a single field name is supported, which blocks the use of -/// enum support. -/// /// Visibility is respected - all types and fields must be visible to the call site: /// /// ```