rust/tests/ui/sanitizer
Jubilee 992aa1edb6
Rollup merge of #122879 - maurer:callsite-instances, r=workingjubilee
CFI: Strip auto traits off Virtual calls

We already use `Instance` at declaration sites when available to glean additional information about possible abstractions of the type in use. This does the same when possible at callsites as well.

The primary purpose of this change is to allow CFI to alter how it generates type information for indirect calls through `Virtual` instances.

This is needed for the "separate machinery" version of my approach to the vtable issues (#122573), because we need to respond differently to a `Virtual` call to the same type as a non-virtual call, specifically [stripping auto traits off the receiver's `Self`](https://github.com/rust-lang/rust/pull/122573/commits/54b15b0c36d4638167732a0542ed0e34ecf17d7c) because there isn't a separate vtable for `Foo` vs `Foo + Send`.

This would also make a more general underlying mechanism that could be used by rcvalle's [proposed drop detection / encoding](https://github.com/rust-lang/rust/pull/116404/commits/edcd1e20a1a69a8590d8ca47b31634854a40e3fb) if we end up using his approach, as we could condition out on the `def_id` in the CFI code rather than requiring the generating code to explicitly note whether it was calling drop.
2024-03-23 22:59:42 -07:00
..
address.rs
badfree.rs
cfg-kasan.rs
cfg.rs
cfi-canonical-jump-tables-requires-cfi.rs
cfi-canonical-jump-tables-requires-cfi.stderr
cfi-closure-fn-ptr-cast.rs CFI: Skip non-passed arguments 2024-03-21 22:26:26 +00:00
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-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 CFI: Support self_cell-like recursion 2024-03-22 23:02:05 +00:00
cfi-virtual-auto.rs CFI: Strip auto traits off Self for virtual calls 2024-03-23 18:30:45 +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