Rollup merge of #132413 - lolbinarycat:offset_of_nested-docs, r=worki… · qinheping/verify-rust-std@2b0a6dd (original) (raw)

Original file line number Diff line number Diff line change
@@ -1254,11 +1254,9 @@ impl SizedTypeProperties for T {}
1254 1254 ///
1255 1255 /// Nested field accesses may be used, but not array indexes.
1256 1256 ///
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.
1262 1260 ///
1263 1261 /// Visibility is respected - all types and fields must be visible to the call site:
1264 1262 ///