diff options
| author | Eric Holk <ericholk@microsoft.com> | 2023-01-09 17:07:52 -0800 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2023-01-12 11:58:32 -0800 |
| commit | d32f3fe14ecab069ceebe73063061f6aef05c217 (patch) | |
| tree | 50cba6041a1f5ec2cc4d590e249abafb636e5eaf /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | 96de375e6773836e47c69fd23e55c77c509a5419 (diff) | |
| download | rust-d32f3fe14ecab069ceebe73063061f6aef05c217.tar.gz rust-d32f3fe14ecab069ceebe73063061f6aef05c217.zip | |
[drop tracking] Visit break expressions
This fixes #102383 by remembering to visit the expression in `break expr` when building the drop tracking CFG. Missing this step was causing an off-by-one error which meant after a number of awaits we'd be looking for dropped values at the wrong point in the code. Additionally, this changes the order of traversal for assignment expressions to visit the rhs and then the lhs. This matches what is done elsewhere.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions
