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.
This commit is contained in:
parent
9deed6f74e
commit
75ef068920
4 changed files with 24 additions and 45 deletions
|
@ -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)
|
||||
})*
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue