rust/compiler/rustc_codegen_ssa/src
bors 80a2ec49a4 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)
2023-04-22 00:10:44 +00:00
..
back Remove WithOptconstParam. 2023-04-20 17:48:32 +00:00
coverageinfo Use &IndexSlice instead of &IndexVec where possible 2023-04-02 17:35:37 -07:00
debuginfo Store hashes in special types so they aren't accidentally encoded as numbers 2023-04-18 10:52:47 -04:00
mir offset_of 2023-04-21 02:14:02 -07:00
traits Allow transmutes to produce OperandValues instead of always using allocas 2023-04-04 18:44:29 -07:00
base.rs Use FieldIdx in various things related to aggregates 2023-04-01 20:32:50 -07:00
codegen_attrs.rs Spelling - compiler 2023-04-17 16:09:18 -04:00
common.rs DELETE - fn span_invalid_monomorphization_error and localize intrinsics macros 2022-12-27 20:59:22 -05:00
errors.rs Spelling - compiler 2023-04-17 16:09:18 -04:00
glue.rs Use size_of_val instead of manual calculation 2023-03-17 19:55:49 -07:00
lib.rs Add rustc_fluent_macro to decouple fluent from rustc_macros 2023-04-18 18:56:22 +00:00
meth.rs Add GenericArgKind::as_{type,const,region} 2023-04-19 14:54:31 +00:00
mono_item.rs Store a LocalDefId in hir::AnonConst. 2022-11-13 14:06:11 +00:00
target_features.rs Add riscv relax target feature 2023-04-02 07:30:42 -07:00