mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
a3898aaeb3
fix inference variables leaking into HIR const literal lowering logic Inference variables could leak into further const lowering logic It ICEs when query system tries to cache `lit_to_const()` after its execution and panics, because inference variables are not hashable for some reason Fixes rust-lang/rust#153524 Fixes rust-lang/rust#153525
For high-level intro to how type checking works in rustc, see the hir typeck chapter of the rustc dev guide.