rust/compiler/rustc_mir/src
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
..
borrow_check Reduce size of statements 2021-04-02 19:11:50 -04:00
const_eval Auto merge of #76881 - hameerabbasi:issue-53325, r=oli-obk 2021-04-02 17:38:57 +00:00
dataflow Reduce size of statements 2021-04-02 19:11:50 -04:00
interpret Auto merge of #83207 - oli-obk:valtree2, r=lcnr 2021-04-02 10:28:12 +00:00
monomorphize fix 2021-04-02 10:21:23 -07:00
transform Reduce size of statements 2021-04-02 19:11:50 -04:00
util Auto merge of #83207 - oli-obk:valtree2, r=lcnr 2021-04-02 10:28:12 +00:00
lib.rs Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
shim.rs Prepare mir::Constant for ty::Const only supporting valtrees 2021-03-12 12:43:54 +00:00