Skip to content

Commit

Permalink
Auto merge of #99814 - aliemjay:patch-2, r=jackh726
Browse files Browse the repository at this point in the history
fix universe map in ifcx.instantiate_canonical_*

Previously, `infcx.instantiate_canonical_*` maps the root universe in `canonical` into `ty::UniverseIndex::Root`, I think because it assumes it works with a fresh `infcx` but this is not true for the use cases in mir typeck. Now the root universe is mapped into `infcx.universe()`.

I catched this accidentally while reviewing the code. I'm not sure if this is the right fix or if it is really a bug!
  • Loading branch information
bors committed Nov 30, 2022
2 parents 1411f2b + dfe8449 commit 220879d
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 220879d

Please sign in to comment.