Add offset_of! macro (RFC 3308) by DrMeepster · Pull Request #106934 · rust-lang...
source link: https://github.com/rust-lang/rust/pull/106934
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Add offset_of! macro (RFC 3308) by DrMeepster · Pull Request #106934 · rust-lang/rust · GitHub
Contributor
Implements rust-lang/rfcs#3308 (tracking issue #106655) by adding the built in macro core::mem::offset_of
. Two of the future possibilities are also implemented:
I wrote this a few months ago, before the RFC merged. Now that it's merged, I decided to rebase and finish it.
cc @thomcc (RFC author)
Collaborator
(rustbot has picked a reviewer for you, use r? to override) |
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
labels
Collaborator
Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt Some changes occured in cc @BoxyUwU Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 This PR changes MIR cc @oli-obk, @RalfJung, @JakobDegen, @davidtwco, @celinval, @vakaras Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK