Skip to content

Commit 2b0a6dd

Browse files
Rollup merge of rust-lang#132413 - lolbinarycat:offset_of_nested-docs, r=workingjubilee
update offset_of! docs to reflect the stabilization of nesting this seems to have been missed.
2 parents 36cfa4e + 4283f78 commit 2b0a6dd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

core/src/mem/mod.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -1254,11 +1254,9 @@ 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
1258-
/// not have an offset.
1259-
///
1260-
/// However, on stable only a single field name is supported, which blocks the use of
1261-
/// enum support.
1257+
/// If the nightly-only feature `offset_of_enum` is enabled,
1258+
/// variants may be traversed as if they were fields.
1259+
/// Variants themselves do not have an offset.
12621260
///
12631261
/// Visibility is respected - all types and fields must be visible to the call site:
12641262
///

0 commit comments

Comments
 (0)