]> git.lizzy.rs Git - rust.git/commit
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)
commit71c3f8c20c67e8e18f9b35817929fc2d28dd434d
tree4e3a63498862bdfd204c49653abecc85ac909462
parentd0d554456a9c641c873f34c3f03a8679065d0f07
parent090b2453a1a2df8ebd6216855515339822823d80
auto merge of #9924 : metajack/rust/fix-starts-with-ends-with, r=huonw

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.