about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-04-19 19:17:08 -0700
committerbors <bors@rust-lang.org>2016-04-19 19:17:08 -0700
commit9cf6fba955736fff590a67293733755172d51cb9 (patch)
treebdf30bbab5592a46db7f97e41a792c252320443e /src/liballoc_system
parentc2aaad4e2288647c5235754a5e1439a5124978fe (diff)
parent8984242373d1317494f32e8f7326ac7d8fd52006 (diff)
downloadrust-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