about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-20 07:25:27 +0100
committerGitHub <noreply@github.com>2023-01-20 07:25:27 +0100
commit3d79cbc3c1cf6fadeff32c30a8e20d456cd625fe (patch)
treefb3d5a24762ec9f4803fa54b1f091d06c9736597 /compiler/rustc_hir_analysis/src
parent51d50ea96ecc9c681a0054e5eb8e5e1d4ab38906 (diff)
parentd32f3fe14ecab069ceebe73063061f6aef05c217 (diff)
downloadrust-3d79cbc3c1cf6fadeff32c30a8e20d456cd625fe.tar.gz
rust-3d79cbc3c1cf6fadeff32c30a8e20d456cd625fe.zip
Rollup merge of #106699 - eholk:await-chains-drop-tracking, r=wesleywiser
[drop tracking] Visit break expressions

This fixes https://github.com/rust-lang/rust/issues/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.

Finally, this improves some of the debugging output (for example, the CFG visualizer) to make it easier to figure out these sorts of issues.
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions