Refactor to make interpreter and codegen backend neutral to vtable internal representation.
This commit is contained in:
parent
14831568d5
commit
a86d3a7e45
10 changed files with 246 additions and 177 deletions
|
@ -959,9 +959,9 @@ rustc_queries! {
|
|||
desc { |tcx| "checking if item has mir available: `{}`", tcx.def_path_str(key) }
|
||||
}
|
||||
|
||||
query vtable_methods(key: ty::PolyTraitRef<'tcx>)
|
||||
-> &'tcx [Option<(DefId, SubstsRef<'tcx>)>] {
|
||||
desc { |tcx| "finding all methods for trait {}", tcx.def_path_str(key.def_id()) }
|
||||
query vtable_entries(key: ty::PolyTraitRef<'tcx>)
|
||||
-> &'tcx [ty::VtblEntry<'tcx>] {
|
||||
desc { |tcx| "finding all vtable entries for trait {}", tcx.def_path_str(key.def_id()) }
|
||||
}
|
||||
|
||||
query codegen_fulfill_obligation(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue