From 6b1c52ff254c40b3b5f7a3e16db9cf3f8e9b35e0 Mon Sep 17 00:00:00 2001 From: Charles Lew Date: Wed, 18 Aug 2021 12:45:18 +0800 Subject: Fold `vtable_trait_upcasting_coercion_new_vptr_slot` logic into obligation processing. --- compiler/rustc_query_impl/src/keys.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'compiler/rustc_query_impl/src') diff --git a/compiler/rustc_query_impl/src/keys.rs b/compiler/rustc_query_impl/src/keys.rs index ace7cffd16d..38ab26d66ac 100644 --- a/compiler/rustc_query_impl/src/keys.rs +++ b/compiler/rustc_query_impl/src/keys.rs @@ -332,6 +332,16 @@ impl<'tcx> Key for Ty<'tcx> { } } +impl<'tcx> Key for (Ty<'tcx>, Ty<'tcx>) { + #[inline(always)] + fn query_crate_is_local(&self) -> bool { + true + } + fn default_span(&self, _: TyCtxt<'_>) -> Span { + DUMMY_SP + } +} + impl<'tcx> Key for &'tcx ty::List> { #[inline(always)] fn query_crate_is_local(&self) -> bool { -- cgit 1.4.1-3-g733a5