about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2022-07-27 18:34:46 +0300
committerGitHub <noreply@github.com>2022-07-27 18:34:46 +0300
commitf87953f01a5ba5966327055c935cc21eb2fc1762 (patch)
tree6b540ce5e6da74b54fa28ad2f79edda9e20fad65 /compiler/rustc_codegen_llvm/src/errors.rs
parent2a220937c283803bfd5d1155e4a81e6287089504 (diff)
downloadrust-f87953f01a5ba5966327055c935cc21eb2fc1762.tar.gz
rust-f87953f01a5ba5966327055c935cc21eb2fc1762.zip
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!
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions