mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-16 09:19:58 +00:00

Use `structurally_normalize` instead of manual `normalizes-to` goals in alias relate errors r? `@lcnr` I added `structurally_normalize_term` so that code that is generic over ty or const can use the structurally normalize helpers. See `tests/ui/traits/next-solver/diagnostics/alias_relate_error_uses_structurally_normalize.rs` for a description of the reason for the (now fixed) ICEs
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.