about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorblake2-ppc <blake2-ppc>2013-08-26 11:48:49 +0200
committerblake2-ppc <blake2-ppc>2013-08-26 13:30:46 +0200
commit4de9bca4d813b88f06f7c5f64d2c452c80611f6b (patch)
tree44abd3b4ce1069795e8fa108390e185c6567bd7a /src/rustllvm/PassWrapper.cpp
parent413f868220e0ccd5fcc728be5ebde1f8e4eabf19 (diff)
downloadrust-4de9bca4d813b88f06f7c5f64d2c452c80611f6b.tar.gz
rust-4de9bca4d813b88f06f7c5f64d2c452c80611f6b.zip
std::str: Tune CharSplitIterator after benchmarks
Implement Huon Wilson's suggestions (since the benchmarks agree!).

Use `self.sep.matches(byte as char) && byte < 128u8` to match in the
only_ascii case so that mistaken matches outside the ascii range can't
create invalid substrings.

Put the conditional on only_ascii outside the loop.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions