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:
parent
f38d1e971d
commit
85338197d4
2 changed files with 12 additions and 4 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue