1
Fork 0

Add query own_existential_vtable_entries

This commit is contained in:
Gary Guo 2021-09-01 23:04:28 +01:00
parent 871eb6233e
commit 97214eecc5
4 changed files with 69 additions and 44 deletions

View file

@ -996,6 +996,12 @@ rustc_queries! {
desc { |tcx| "checking if item has mir available: `{}`", tcx.def_path_str(key) }
}
query own_existential_vtable_entries(
key: ty::PolyExistentialTraitRef<'tcx>
) -> &'tcx [DefId] {
desc { |tcx| "finding all existential vtable entries 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()) }