rust/compiler
Eric Holk c37a906db5 Drop tracking: improve break and continue handling
This commit fixes two issues.

One, sometimes break or continue have a block target instead of an
expression target. This seems to mainly happen with try blocks. Since
the drop tracking analysis only works on expressions, if we see a block
target for break or continue, we substitute the last expression of the
block as the target instead.

Two, break and continue were incorrectly being treated as the same, so
continue would also show up as an exit from the loop or block. This
patch corrects the way continue is handled by keeping a stack of loop
entry points and uses those to find the target of the continue.
2022-02-07 16:30:30 -08:00
..
2022-01-28 16:56:05 +01:00
2022-02-02 17:11:01 +01:00
2022-02-03 21:45:51 +01:00
2022-02-05 15:07:10 -05:00
2022-02-01 11:21:26 +01:00
2022-01-15 01:16:55 +00:00