rust/compiler/rustc_middle/src/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
..
interpret Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
abstract_const.rs errooaaar~ 2021-03-02 15:47:16 +00:00
coverage.rs Translate counters from Rust 1-based to LLVM 0-based counter ids 2021-04-02 17:16:36 -07:00
graph_cyclic_cache.rs Cache result of 2020-12-20 10:29:26 +01:00
mod.rs Reduce size of statements 2021-04-02 19:11:50 -04:00
mono.rs Run LLVM coverage instrumentation passes before optimization passes 2021-03-30 02:10:28 +01:00
predecessors.rs words 2020-11-16 22:42:09 +01:00
query.rs make unaligned_refereces future-incompat lint warn-by-default, and remove the safe_packed_borrows lint that it replaces 2021-03-27 16:59:37 +01:00
tcx.rs Prepare mir::Constant for ty::Const only supporting valtrees 2021-03-12 12:43:54 +00:00
terminator.rs Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
traversal.rs Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
type_foldable.rs Some more fine-grained forced inlining 2021-04-01 10:40:50 +00:00
visit.rs Reduce size of statements 2021-04-02 19:11:50 -04:00