diff options
| author | bors <bors@rust-lang.org> | 2016-04-19 19:17:08 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-04-19 19:17:08 -0700 |
| commit | 9cf6fba955736fff590a67293733755172d51cb9 (patch) | |
| tree | bdf30bbab5592a46db7f97e41a792c252320443e /src/liballoc_system | |
| parent | c2aaad4e2288647c5235754a5e1439a5124978fe (diff) | |
| parent | 8984242373d1317494f32e8f7326ac7d8fd52006 (diff) | |
| download | rust-9cf6fba955736fff590a67293733755172d51cb9.tar.gz rust-9cf6fba955736fff590a67293733755172d51cb9.zip | |
Auto merge of #31253 - ranma42:improve-unicode-iter-offset, r=brson
Improve computation of offset in `EscapeUnicode` Unify the computation of `offset` and use `leading_zeros` instead of manually scanning the bits. This PR removes some duplicated code and makes it a little simpler . The computation of `offset` is also faster, but it is unlikely to have an impact on actual code. (split from #31049)
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions
