diff options
| author | bors <bors@rust-lang.org> | 2022-05-21 04:21:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-21 04:21:38 +0000 |
| commit | 8d04a32ab4939c70c8db1c67a29600c64c6499a4 (patch) | |
| tree | 1afc7c526762017a024a2ad4783f1140ef25d996 /src/test/codegen/src-hash-algorithm | |
| parent | 01421e0cbda66655e25d48c1c72c2dcbe77040c2 (diff) | |
| parent | 5ad1b352063eda45f6fda7f3c2fd594e1b91aa41 (diff) | |
| download | rust-8d04a32ab4939c70c8db1c67a29600c64c6499a4.tar.gz rust-8d04a32ab4939c70c8db1c67a29600c64c6499a4.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 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
