about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-21 04:21:38 +0000
committerbors <bors@rust-lang.org>2022-05-21 04:21:38 +0000
commit3b64fe953c23b7d56dd5ebf61b6dbd82b345f880 (patch)
tree41d4748d3e4d3c55a7e599be6f665b7bb63988a6 /compiler/rustc_codegen_gcc
parent4a86c7907b1e34d14d742fa4c4202626bb77eddc (diff)
parentbf21a81b1541a420566fc81f8a1dde5486008387 (diff)
downloadrust-3b64fe953c23b7d56dd5ebf61b6dbd82b345f880.tar.gz
rust-3b64fe953c23b7d56dd5ebf61b6dbd82b345f880.zip
Auto merge of #96923 - eholk:fix-fake-read, r=nikomatsakis
Drop Tracking: Implement `fake_read` callback

This PR updates drop tracking's use of `ExprUseVisitor` so that we treat `fake_read` events as borrows. Without doing this, we were not handling match expressions correctly, which showed up as a breakage in the `addassign-yield.rs` test. We did not previously notice this because we still had rather large temporary scopes that we held borrows for, which changed in #94309.

This PR also includes a variant of the `addassign-yield.rs` test case to make sure we continue to have correct behavior here with drop tracking.

r? `@nikomatsakis`
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions