Commit 71c3f8c
committed
auto merge of #9924 : metajack/rust/fix-starts-with-ends-with, r=huonw
d4a3238 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.1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2010 | 2010 | | |
2011 | 2011 | | |
2012 | 2012 | | |
2013 | | - | |
| 2013 | + | |
2014 | 2014 | | |
2015 | 2015 | | |
2016 | 2016 | | |
2017 | 2017 | | |
2018 | 2018 | | |
2019 | | - | |
| 2019 | + | |
2020 | 2020 | | |
2021 | 2021 | | |
2022 | 2022 | | |
| |||
2886 | 2886 | | |
2887 | 2887 | | |
2888 | 2888 | | |
| 2889 | + | |
| 2890 | + | |
2889 | 2891 | | |
2890 | 2892 | | |
2891 | 2893 | | |
| |||
2895 | 2897 | | |
2896 | 2898 | | |
2897 | 2899 | | |
| 2900 | + | |
| 2901 | + | |
2898 | 2902 | | |
2899 | 2903 | | |
2900 | 2904 | | |
| |||
0 commit comments