Files
rust/tests/ui/wf
Jacob Pratt 1f0923d385 Rollup merge of #160856 - adwinwhite:param-env-norm-fail-with-err, r=lcnr
Replace infers and non-rigid aliases with `Ty/Const::Error` if param env normalization fails

Fixes rust-lang/rust#160196
Fixes rust-lang/rust#148630

Previously we use unnormalized param env if we fail to normalize it. This causes problem for places which expect normalized param env, like in lexical region solving.

I also sneak in a one-line change that we resolve regions with normalized param env in param env normalization now.
This fixes ICEs in `polkadot` and `zerocopy` which had non-rigid const aliases in type outlive env before. I can split it into another PR if that's preferred.

r? lcnr
2026-08-13 03:26:28 -04:00
..
2025-12-02 18:25:13 +00:00