-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for #![feature(offset_of)] #106655
Copy link
Copy link
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-offset_of`#![feature(offset_of)]``#![feature(offset_of)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-offset_of`#![feature(offset_of)]``#![feature(offset_of)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gates tracked by this issue:
#![feature(offset_of)]-> moved to Tracking Issue for enum access in offset_of #120141#![feature(offset_of_enum)]This is a tracking issue for the
offset_of!macro which evaluates to a constantcontaining the offset in bytes of a field inside some type (rust-lang/rfcs#3308).
Public API
Steps / History
offset_of_enum: Feature gate enums in offset_of #117537Possible future extensions / work
struct Example(u32, [u8]))enums: Support enum variants in offset_of! #114208Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩