rust/compiler/rustc_borrowck
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 Remove from compiler/ crates 2022-09-29 16:49:04 +09:00