diff options
| author | Charles Lew <crlf0710@gmail.com> | 2021-08-18 12:45:18 +0800 |
|---|---|---|
| committer | Charles Lew <crlf0710@gmail.com> | 2021-08-18 13:00:27 +0800 |
| commit | 6b1c52ff254c40b3b5f7a3e16db9cf3f8e9b35e0 (patch) | |
| tree | f54e6891a038bf071fde7fa2e145e111cb4cb560 /compiler/rustc_query_impl/src/keys.rs | |
| parent | 1e605023ec3bf85fc9997741de5c6dae031c791d (diff) | |
| download | rust-6b1c52ff254c40b3b5f7a3e16db9cf3f8e9b35e0.tar.gz rust-6b1c52ff254c40b3b5f7a3e16db9cf3f8e9b35e0.zip | |
Fold `vtable_trait_upcasting_coercion_new_vptr_slot` logic into obligation processing.
Diffstat (limited to 'compiler/rustc_query_impl/src/keys.rs')
| -rw-r--r-- | compiler/rustc_query_impl/src/keys.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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<ty::Predicate<'tcx>> { #[inline(always)] fn query_crate_is_local(&self) -> bool { |
