]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #9924 : metajack/rust/fix-starts-with-ends-with, r=huonw
authorbors <bors@rust-lang.org>
Fri, 18 Oct 2013 07:26:19 +0000 (00:26 -0700)
committerbors <bors@rust-lang.org>
Fri, 18 Oct 2013 07:26:19 +0000 (00:26 -0700)
d4a32386f3b6 broke these since slice_to() and slice_from() must get character
boundaries, and arbitrary needle lengths don't necessarily map to character
boundaries of the haystack.

This also adds new tests that would have caught this bug.


Trivial merge