diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-01-02 12:48:35 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-01-14 12:11:25 +1100 |
| commit | 867950f8c6f4a11e388e3e3e75cdf5344e95e4e8 (patch) | |
| tree | 1f840e321559ce631e2e6066aae8b74d4a5c3d24 /compiler/rustc_pattern_analysis/src/errors.rs | |
| parent | 229d0983b5c1765a50afe1a67853487bb6b145f4 (diff) | |
| download | rust-867950f8c6f4a11e388e3e3e75cdf5344e95e4e8.tar.gz rust-867950f8c6f4a11e388e3e3e75cdf5344e95e4e8.zip | |
coverage: Move helper `add_basic_coverage_block` into a local closure
This also switches from `split_off(0)` to `std::mem::take` when emptying the accumulated list of blocks, because `split_off(0)` handles capacity in a way that is unintuitive when used in a loop.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
