update offset_of! docs to reflect the stablization of nesting · qinheping/verify-rust-std@a4b3916 (original) (raw)

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