about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-22 00:10:44 +0000
committerbors <bors@rust-lang.org>2023-04-22 00:10:44 +0000
commit6b80e9c0a6fec3080c82809c277b54cfa2334778 (patch)
tree20e777f9af8b1233b808417f7b530d3561949a6c /compiler/rustc_codegen_gcc
parent22e6885de0b02097eb6a8599c70df7925601ddc1 (diff)
parent9dd0653ed53595886669620f51fdf69c7ff0b63f (diff)
downloadrust-6b80e9c0a6fec3080c82809c277b54cfa2334778.tar.gz
rust-6b80e9c0a6fec3080c82809c277b54cfa2334778.zip
Auto merge of #106934 - DrMeepster:offset_of, r=WaffleLapkin
Add offset_of! macro (RFC 3308)

Implements https://github.com/rust-lang/rfcs/pull/3308 (tracking issue #106655) by adding the built in macro `core::mem::offset_of`. Two of the future possibilities are also implemented:

* Nested field accesses (without array indexing)
* DST support (for `Sized` fields)

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)
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions