Skip to content

Commit

Permalink
Unrolled build for rust-lang#132413
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rust-timer authored Nov 2, 2024
2 parents 705cfe0 + fc67203 commit 0d5aee1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions library/core/src/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1254,11 +1254,9 @@ 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
/// not have an offset.
///
/// However, on stable only a single field name is supported, which blocks the use of
/// enum support.
/// 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.
///
/// Visibility is respected - all types and fields must be visible to the call site:
///
Expand Down

0 comments on commit 0d5aee1

Please sign in to comment.