rust/library/core/src/str
bors 94bec90702 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.
2021-11-30 01:08:56 +00:00
..
converts.rs Fill in tracking issues for const_str_from_utf8 and const_str_from_utf8_unchecked_mut features 2021-11-18 14:04:01 +03:00
error.rs Fill in tracking issues for const_str_from_utf8 and const_str_from_utf8_unchecked_mut features 2021-11-18 14:04:01 +03:00
iter.rs libcore: assume the input of next_code_point and next_code_point_reverse is UTF-8-like 2021-11-21 17:05:55 +01:00
lossy.rs Clarify safety comment on using i to index into self.source 2021-11-26 12:57:36 -08:00
mod.rs Rollup merge of #89786 - jkugelman:must-use-len-and-is_empty, r=joshtriplett 2021-10-31 13:20:05 +01:00
pattern.rs Add char array without ref Pattern impl 2021-07-28 16:13:46 -05:00
traits.rs docs: Escape brackets to satisfy the linkchecker 2021-10-22 14:08:43 -07:00
validations.rs Saner formatting for UTF8_CHAR_WIDTH table 2021-11-25 18:18:36 -08:00