rust/compiler/rustc_mir
bors 5562bb6d74 Auto merge of #76748 - tmiasko:no-op-jumps, r=matthewjasper
Fix underflow when calculating the number of no-op jumps folded

When removing unwinds to no-op blocks and folding jumps to no-op blocks,
remove the unwind target first. Otherwise we cannot determine if target
has been already folded or not.

Previous implementation incorrectly assumed that all resume targets had
been folded already, occasionally resulting in an underflow:

```
remove_noop_landing_pads: removed 18446744073709551613 jumps and 3 landing pads
```
2020-09-24 05:57:06 +00:00
..
src Auto merge of #76748 - tmiasko:no-op-jumps, r=matthewjasper 2020-09-24 05:57:06 +00:00
Cargo.toml update the version of itertools and parking_lot 2020-09-12 08:26:53 +02:00