Skip to content

Commit a4b3916

Browse files
committed
update offset_of! docs to reflect the stablization of nesting
1 parent f7b3231 commit a4b3916

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/src/mem/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1254,12 +1254,10 @@ impl<T> SizedTypeProperties for T {}
12541254
///
12551255
/// Nested field accesses may be used, but not array indexes.
12561256
///
1257-
/// Enum variants may be traversed as if they were fields. Variants themselves do
1257+
/// If the nightly-only feature `offset_of_enum` is enabled,
1258+
/// variants may be traversed as if they were fields. Variants themselves do
12581259
/// not have an offset.
12591260
///
1260-
/// However, on stable only a single field name is supported, which blocks the use of
1261-
/// enum support.
1262-
///
12631261
/// Visibility is respected - all types and fields must be visible to the call site:
12641262
///
12651263
/// ```

0 commit comments

Comments
 (0)