about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-04-04 19:20:01 +0200
committerGitHub <noreply@github.com>2021-04-04 19:20:01 +0200
commita89eab9bca8b7efc37d386ff38d663035a5192de (patch)
treea213e9209a8268ba71722f3f1e70e4db468ea317 /compiler/rustc_codegen_llvm/src
parent6c135561830a4126d1ce2c4767c8388b3c57bc86 (diff)
parentc29dc120e5e43a4757d8f7f20db35c61767fe987 (diff)
downloadrust-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