@@ -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 |
/// ``` |