diff options
| author | bors <bors@rust-lang.org> | 2021-11-30 01:08:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-11-30 01:08:56 +0000 |
| commit | 94bec9070223606632d6112b38670ea1c72763f4 (patch) | |
| tree | 996e062d8e0e9a785e990411f7af96fba715893b /compiler/rustc_mir_transform/src/coverage/graph.rs | |
| parent | 6db0a0e9a4a2f55b1a85954e114ada0b45c32e45 (diff) | |
| parent | c6810a569f52feff03a36fb496780410b2912783 (diff) | |
| download | rust-94bec9070223606632d6112b38670ea1c72763f4.tar.gz rust-94bec9070223606632d6112b38670ea1c72763f4.zip | |
Auto merge of #91244 - dtolnay:lossy, r=Mark-Simulacrum
Eliminate bunch of copies of error codepath from Utf8LossyChunksIter Using a macro to stamp out 7 identical copies of the nontrivial slicing logic to exit this loop didn't seem like a necessary use of a macro. The early return case can be handled by `break` without practically any changes to the logic inside the loop. All this code is from early 2014 (#12062—nearly 8 years ago; pre-1.0) so it's possible there were compiler limitations that forced the macro way at the time. Confirmed that `x.py bench library/alloc --stage 0 --test-args from_utf8_lossy` is unaffected on my machine.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions
