about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-09-24 08:38:48 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-09-25 09:29:23 -0700
commitd5f2d3b1773d70bf3d32b94ad2a2bf3125bf743e (patch)
tree58a095c35f177353b81957655b531f3768d91550 /src/rustllvm/RustWrapper.cpp
parent8fe79bdfdacb2f5914971bd1a0b63b9577afbf6a (diff)
downloadrust-d5f2d3b1773d70bf3d32b94ad2a2bf3125bf743e.tar.gz
rust-d5f2d3b1773d70bf3d32b94ad2a2bf3125bf743e.zip
std: Update MatchIndices to return a subslice
This commit updates the `MatchIndices` and `RMatchIndices` iterators to follow
the same pattern as the `chars` and `char_indices` iterators. The `matches`
iterator currently yield `&str` elements, so the `MatchIndices` iterator now
yields the index of the match as well as the `&str` that matched (instead of
start/end indexes).

cc #27743
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions