rust/compiler/rustc_hir_analysis
Matthias Krüger d10187f040
Rollup merge of #103780 - compiler-errors:bound-closure-lifetimes, r=jackh726
Fix late-bound lifetime closure ICEs in HIR typeck and MIR borrowck

During HIR typeck, we need to teach astconv to treat late-bound regions within a closure body as free, fixing escaping bound vars ICEs in both of the issues below.

However, this then gets us to MIR borrowck, which itself needs to be taught how to instantiate free region vids for late-bound regions that come from items that _aren't_ the typeck root (for now, just closures).

Fixes #103771
Fixes #103736
2022-11-04 12:18:01 +01:00
..
src Rollup merge of #103780 - compiler-errors:bound-closure-lifetimes, r=jackh726 2022-11-04 12:18:01 +01:00
Cargo.toml Rewrite representability 2022-10-07 09:33:46 -05:00
README.md

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.