about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-16 05:33:49 +0000
committerbors <bors@rust-lang.org>2024-06-16 05:33:49 +0000
commit5c6849b1dff68cdfbe886c34f90305f20191226a (patch)
tree433e9c4ea16a7572270300c4cc320456c6a40e02 /tests/codegen/patchable-function-entry
parentc86767797182c7a4ff0e7644a42fb2a93e0ef422 (diff)
parent5ccfa787fd26da2e4fb5f4c6dca89c84342716ef (diff)
downloadrust-5c6849b1dff68cdfbe886c34f90305f20191226a.tar.gz
rust-5c6849b1dff68cdfbe886c34f90305f20191226a.zip
Auto merge of #126505 - compiler-errors:no-vtable, r=lcnr
Only compute vtable information during codegen

This PR removes vtable information from the `Object` and `TraitUpcasting` candidate sources in the trait solvers, and defers the computation of relevant information to `Instance::resolve`. This is because vtables really aren't a thing in the trait world -- they're an implementation detail in codegen.

Previously it was just easiest to tangle this information together since we were already doing the work of looking at all the supertraits in the trait solver, and specifically because we use traits to represent when it's possible to call a method via a vtable (`Object` candidate) and do upcasting (`Unsize` candidate). but I am somewhat suspicious we're doing a *lot* of extra work, especially in polymorphic contexts, so let's see what perf says.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions