Commit 7cee082
authored
Rollup merge of rust-lang#43989 - circuitfox:sliceext-binary-search-sig, r=alexcrichton
Remove Borrow bound from SliceExt::binary_search
rust-lang#37761 added a Borrow bound to `binary_search` and `binary_search_by_key` in `core::SliceExt`, but did not add it to the methods in `std::slice`. rust-lang#41590 attempted to add this bound to `std::slice` but was not merged due to breakage. This PR removes the bound in `core::SliceExt`, so that these methods will have the same signature in `core` and `std`.
Fixes rust-lang#415611 file changed
+10
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 124 | + | |
| 125 | + | |
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
134 | | - | |
| 132 | + | |
135 | 133 | | |
136 | | - | |
137 | | - | |
| 134 | + | |
138 | 135 | | |
139 | 136 | | |
140 | 137 | | |
| |||
635 | 632 | | |
636 | 633 | | |
637 | 634 | | |
638 | | - | |
639 | | - | |
640 | | - | |
| 635 | + | |
| 636 | + | |
641 | 637 | | |
642 | | - | |
| 638 | + | |
643 | 639 | | |
644 | 640 | | |
645 | 641 | | |
| |||
687 | 683 | | |
688 | 684 | | |
689 | 685 | | |
690 | | - | |
| 686 | + | |
691 | 687 | | |
692 | | - | |
693 | | - | |
| 688 | + | |
694 | 689 | | |
695 | | - | |
| 690 | + | |
696 | 691 | | |
697 | 692 | | |
698 | 693 | | |
| |||
0 commit comments