diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-02-19 22:56:56 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-02-20 12:11:28 -0500 |
| commit | 75ef06892089e0cf53b4a86419c7ff3b3c1f3c4c (patch) | |
| tree | 390a0eb58492c30a598602f21af93d0afb8c4536 /compiler/rustc_query_impl/src | |
| parent | 9deed6f74ea2df0ba08fb72342bef4eb303d0777 (diff) | |
| download | rust-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.rs | 3 |
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) })* } }; |
