bors 8d04a32ab4 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`
2022-05-21 04:21:38 +00:00
..
2022-05-05 07:06:12 +10:00
2022-05-10 12:07:35 +02:00
2022-05-10 22:47:18 -04:00
2022-04-05 07:01:00 +01:00
2022-03-11 13:31:24 +11:00
2022-05-09 21:48:57 +08:00
2022-05-13 11:46:06 -04:00