mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
992aa1edb6
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`]( |
||
---|---|---|
.. | ||
back | ||
debuginfo | ||
mir | ||
traits | ||
assert_module_sources.rs | ||
base.rs | ||
codegen_attrs.rs | ||
common.rs | ||
errors.rs | ||
lib.rs | ||
meth.rs | ||
mono_item.rs | ||
size_of_val.rs | ||
target_features.rs |