rust/compiler/rustc_symbol_mangling
Matthew Maurer 473a70de84 CFI: Support function pointers for trait methods
Adds support for both CFI and KCFI for attaching concrete and abstract
types to functions. KCFI does this through generation of `ReifyShim` on
any function pointer that could go in a vtable, and checking the
`ReifyReason` when emitting the instance. CFI does this by attaching
both the concrete and abstract type to every instance.

TypeID codegen tests are switched to be anchored on the left rather than
the right in order to allow emission of additional type attachments.

Fixes #115953
2024-04-02 19:11:16 +00:00
..
src CFI: Support function pointers for trait methods 2024-04-02 19:11:16 +00:00
Cargo.toml CFI: Support arbitrary receivers 2024-03-24 22:46:48 +00:00