about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2024-10-31 11:43:45 -0500
committerbinarycat <binarycat@envs.net>2024-10-31 14:33:00 -0500
commitdd651be7bc74b0d897cd0b4ec76104e51c32cb34 (patch)
tree8e2bf36edf9776d8a147535b6ef7b08c8e87a926
parentbed75e7c21e8d18bd536a0f7c9e479d2f6707db3 (diff)
downloadrust-dd651be7bc74b0d897cd0b4ec76104e51c32cb34.tar.gz
rust-dd651be7bc74b0d897cd0b4ec76104e51c32cb34.zip
update offset_of! docs to reflect the stablization of nesting
-rw-r--r--library/core/src/mem/mod.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs
index 74b198c4fdd..4c4c31eaf0a 100644
--- a/library/core/src/mem/mod.rs
+++ b/library/core/src/mem/mod.rs
@@ -1254,12 +1254,10 @@ impl<T> SizedTypeProperties for T {}
 ///
 /// Nested field accesses may be used, but not array indexes.
 ///
-/// Enum variants may be traversed as if they were fields. Variants themselves do
+/// If the nightly-only feature `offset_of_enum` is enabled,
+/// variants may be traversed as if they were fields. Variants themselves do
 /// not have an offset.
 ///
-/// However, on stable only a single field name is supported, which blocks the use of
-/// enum support.
-///
 /// Visibility is respected - all types and fields must be visible to the call site:
 ///
 /// ```