mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-08 05:06:52 +00:00

Deeply normalize when computing implied outlives bounds
r? lcnr
Unfortunately resolving regions is still slightly scuffed (though in an unrelated way). Specifically, we should be normalizing our param-env outlives when constructing the `OutlivesEnv`; otherwise, these assumptions (dd2837ec5d/compiler/rustc_infer/src/infer/outlives/env.rs (L78)
) are not constructed correctly.
Let me know if you want us to track that somewhere.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.