about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2022-02-19 22:56:56 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2022-02-20 12:11:28 -0500
commit75ef06892089e0cf53b4a86419c7ff3b3c1f3c4c (patch)
tree390a0eb58492c30a598602f21af93d0afb8c4536 /compiler/rustc_query_impl/src
parent9deed6f74ea2df0ba08fb72342bef4eb303d0777 (diff)
downloadrust-75ef06892089e0cf53b4a86419c7ff3b3c1f3c4c.tar.gz
rust-75ef06892089e0cf53b4a86419c7ff3b3c1f3c4c.zip
Delete QueryLookup
This was largely just caching the shard value at this point, which is not
particularly useful -- in the use sites the key was being hashed nearby anyway.
Diffstat (limited to 'compiler/rustc_query_impl/src')
-rw-r--r--compiler/rustc_query_impl/src/plumbing.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs
index 1eaf5ee0c05..684b2e248c8 100644
--- a/compiler/rustc_query_impl/src/plumbing.rs
+++ b/compiler/rustc_query_impl/src/plumbing.rs
@@ -538,12 +538,11 @@ macro_rules! define_queries_struct {
                 tcx: TyCtxt<$tcx>,
                 span: Span,
                 key: query_keys::$name<$tcx>,
-                lookup: QueryLookup,
                 mode: QueryMode,
             ) -> Option<query_stored::$name<$tcx>> {
                 opt_remap_env_constness!([$($modifiers)*][key]);
                 let qcx = QueryCtxt { tcx, queries: self };
-                get_query::<queries::$name<$tcx>, _>(qcx, span, key, lookup, mode)
+                get_query::<queries::$name<$tcx>, _>(qcx, span, key, mode)
             })*
         }
     };