1
Fork 0

don't store OriginalQueryValues::universe_map

ParamEnv is canonicalized in *queries input* rather than query response.
In such case we don't "preserve universes" of canonical variable.
This means that `universe_map` always has the default value, which is
wasteful to store in the cache.
This commit is contained in:
Ali MJ Al-Nasrawy 2023-12-06 09:30:33 +00:00
parent f38d1e971d
commit 85338197d4
2 changed files with 12 additions and 4 deletions

View file

@ -150,6 +150,7 @@ impl<'tcx> InferCtxt<'tcx> {
{
let (param_env, value) = value.into_parts();
let base = self.tcx.canonical_param_env_cache.get_or_insert(
self.tcx,
param_env,
query_state,
|query_state| {