Don't call own_existential_vtable_entries on unresolved trait ref

This commit is contained in:
Michael Goulet 2022-10-19 01:27:32 +00:00
parent a6b5f95fb0
commit 1e2eb97c6e
3 changed files with 8 additions and 19 deletions

View file

@ -1207,9 +1207,9 @@ rustc_queries! {
}
query own_existential_vtable_entries(
key: ty::PolyExistentialTraitRef<'tcx>
key: DefId
) -> &'tcx [DefId] {
desc { |tcx| "finding all existential vtable entries for trait `{}`", tcx.def_path_str(key.def_id()) }
desc { |tcx| "finding all existential vtable entries for trait `{}`", tcx.def_path_str(key) }
}
query vtable_entries(key: ty::PolyTraitRef<'tcx>)