diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-04 19:20:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-04 19:20:01 +0200 |
| commit | a89eab9bca8b7efc37d386ff38d663035a5192de (patch) | |
| tree | a213e9209a8268ba71722f3f1e70e4db468ea317 /compiler/rustc_codegen_llvm/src | |
| parent | 6c135561830a4126d1ce2c4767c8388b3c57bc86 (diff) | |
| parent | c29dc120e5e43a4757d8f7f20db35c61767fe987 (diff) | |
| download | rust-a89eab9bca8b7efc37d386ff38d663035a5192de.tar.gz rust-a89eab9bca8b7efc37d386ff38d663035a5192de.zip | |
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```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
