Files
rust/compiler
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
..
2021-03-26 09:32:31 -07:00
2021-03-27 22:16:33 -04:00
2021-03-27 22:16:33 -04:00
2021-03-30 20:31:06 +02:00
2021-03-19 19:45:32 -05:00
2021-03-27 22:16:34 -04:00
2021-04-02 08:08:02 +08:00
2021-03-27 22:16:33 -04:00
2021-03-30 20:31:06 +02:00
2021-03-26 09:32:31 -07:00
2021-04-02 19:11:50 -04:00
2021-03-23 17:16:20 +00:00
2021-03-31 10:16:37 -04:00
2021-03-31 10:15:27 -04:00