rust/compiler/rustc_mir
Dylan DPC a89eab9bca
Rollup merge of #83521 - sexxi-goose:quick-diagnostic-fix, r=nikomatsakis
2229: Fix diagnostic issue when using FakeReads in closures

This PR fixes a diagnostic issue caused by https://github.com/rust-lang/rust/pull/82536. A temporary work around was used in this merged PR which involved feature gating the addition of FakeReads introduced as a result of pattern matching in closures.

The fix involves adding an optional closure DefId to ForLet and ForMatchedPlace FakeReadCauses. This DefId will only be added if a closure pattern matches a Place starting with an Upvar.

r? ```@nikomatsakis```
2021-04-04 19:20:01 +02:00
..
src Rollup merge of #83521 - sexxi-goose:quick-diagnostic-fix, r=nikomatsakis 2021-04-04 19:20:01 +02:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00