diff options
| author | Michael Goulet <michael@errs.io> | 2022-10-19 01:27:32 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-10-19 17:11:40 +0000 |
| commit | 1e2eb97c6e4aaf53dfff018cf82fe4d033fe6b3e (patch) | |
| tree | 8e5e72498c7d20d20e687a765d9a531a4756b156 /compiler/rustc_middle/src/query | |
| parent | a6b5f95fb028f9feb4a2957c06b35035be2c6155 (diff) | |
| download | rust-1e2eb97c6e4aaf53dfff018cf82fe4d033fe6b3e.tar.gz rust-1e2eb97c6e4aaf53dfff018cf82fe4d033fe6b3e.zip | |
Don't call `own_existential_vtable_entries` on unresolved trait ref
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index ef2c7a003fa..ea81d4465fb 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -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>) |
