rust/tests/ui/sanitizer
bors 29fe618f75 Auto merge of #123052 - maurer:addr-taken, r=compiler-errors
CFI: Support function pointers for trait methods

Adds support for both CFI and KCFI for function pointers to trait methods by attaching both concrete and abstract types to functions.

KCFI does this through generation of a `ReifyShim` on any function pointer for a method that could go into a vtable, and keeping this separate from `ReifyShim`s that are *intended* for vtable us by setting a `ReifyReason` on them.

CFI does this by setting both the concrete and abstract type on every instance.

This should land after #123024 or a similar PR, as it diverges the implementation of CFI vs KCFI.

r? `@compiler-errors`
2024-04-04 06:40:30 +00:00
..
address.rs
badfree.rs
cfg-kasan.rs
cfg.rs KCFI: Require -C panic=abort 2024-03-29 16:35:58 +00:00
cfi-assoc-ty-lifetime-issue-123053.rs
cfi-async-closures.rs CFI: Rewrite closure and coroutine instances to their trait method 2024-03-30 16:40:38 +00:00
cfi-canonical-jump-tables-requires-cfi.rs
cfi-canonical-jump-tables-requires-cfi.stderr
cfi-closures.rs CFI: Support function pointers for trait methods 2024-04-02 19:11:16 +00:00
cfi-complex-receiver.rs KCFI: Require -C panic=abort 2024-03-29 16:35:58 +00:00
cfi-coroutine.rs CFI: Support non-general coroutines 2024-04-02 17:34:42 +00:00
cfi-drop-in-place.rs CFI: Fix drop and drop_in_place 2024-03-27 12:52:14 -07:00
cfi-drop-no-principal.rs
cfi-generalize-pointers-attr-cfg.rs
cfi-generalize-pointers-requires-cfi.rs
cfi-generalize-pointers-requires-cfi.stderr
cfi-invalid-attr-cfi-encoding.rs
cfi-invalid-attr-cfi-encoding.stderr
cfi-is-incompatible-with-kcfi.aarch64.stderr
cfi-is-incompatible-with-kcfi.rs
cfi-is-incompatible-with-kcfi.x86_64.stderr
cfi-method-fn-ptr-cast.rs CFI: Support function pointers for trait methods 2024-04-02 19:11:16 +00:00
cfi-normalize-integers-attr-cfg.rs
cfi-normalize-integers-requires-cfi.rs
cfi-normalize-integers-requires-cfi.stderr
cfi-requires-lto.rs
cfi-requires-lto.stderr
cfi-self-ref.rs KCFI: Require -C panic=abort 2024-03-29 16:35:58 +00:00
cfi-supertraits.rs CFI: Encode Virtual calls as calls through the defining trait 2024-03-29 18:15:41 +00:00
cfi-virtual-auto.rs KCFI: Require -C panic=abort 2024-03-29 16:35:58 +00:00
cfi-with-rustc-lto-requires-single-codegen-unit.rs
cfi-with-rustc-lto-requires-single-codegen-unit.stderr
crt-static.rs
crt-static.stderr
dataflow-abilist.txt
dataflow.rs
hwaddress.rs
incompatible.rs
incompatible.stderr
inline-always.rs
inline-always.stderr
issue-72154-address-lifetime-markers.rs
issue-111184-cfi-coroutine-witness.rs
issue-114275-cfi-const-expr-in-arry-len.rs
leak.rs
memory-eager.rs
memory-passing.rs
memory.rs
new-llvm-pass-manager-thin-lto.rs
split-lto-unit-requires-lto.rs
split-lto-unit-requires-lto.stderr
thread.rs
unsupported-target.rs
unsupported-target.stderr
use-after-scope.rs