[Pre-RFC] BTF relocations
Rust Internals [Unofficial]
April 10, 2026
vad:
I do agree that
offset_of!on relocatable types/fields should fail to compile
Why? Can't it just compile down to emitting a relocation so that it evaluates to the correct offset?
vad:
the only option for now seems to be treating them as not
Sized
I believe that would be sufficient for most use-cases.
Discussion in the ATmosphere