This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 564a5fb
authored
Unrolled build for rust-lang#118811
Rollup merge of rust-lang#118811 - EbbDrop:is-sorted-by-bool, r=Mark-Simulacrum
Use `bool` instead of `PartiolOrd` as return value of the comparison closure in `{slice,Iteraotr}::is_sorted_by`
Changes the function signature of the closure given to `{slice,Iteraotr}::is_sorted_by` to return a `bool` instead of a `PartiolOrd` as suggested by the libs-api team here: rust-lang#53485 (comment).
This means these functions now return true if the closure returns true for all the pairs of values.File tree
6 files changed
+37
-26
lines changed- compiler/rustc_monomorphize/src
- library/core
- src
- iter/traits
- slice
- tests
- iter/traits
6 files changed
+37
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4033 | 4033 | | |
4034 | 4034 | | |
4035 | 4035 | | |
4036 | | - | |
| 4036 | + | |
4037 | 4037 | | |
4038 | 4038 | | |
4039 | 4039 | | |
4040 | 4040 | | |
4041 | 4041 | | |
4042 | | - | |
4043 | | - | |
| 4042 | + | |
4044 | 4043 | | |
4045 | 4044 | | |
4046 | 4045 | | |
4047 | 4046 | | |
4048 | 4047 | | |
4049 | 4048 | | |
4050 | | - | |
4051 | | - | |
4052 | | - | |
4053 | | - | |
4054 | | - | |
4055 | | - | |
| 4049 | + | |
| 4050 | + | |
4056 | 4051 | | |
4057 | | - | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
4058 | 4058 | | |
4059 | 4059 | | |
4060 | 4060 | | |
4061 | 4061 | | |
4062 | 4062 | | |
4063 | | - | |
| 4063 | + | |
4064 | 4064 | | |
4065 | 4065 | | |
4066 | 4066 | | |
4067 | 4067 | | |
4068 | | - | |
| 4068 | + | |
4069 | 4069 | | |
4070 | 4070 | | |
4071 | | - | |
| 4071 | + | |
4072 | 4072 | | |
4073 | 4073 | | |
4074 | 4074 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
136 | | - | |
| 135 | + | |
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3957 | 3957 | | |
3958 | 3958 | | |
3959 | 3959 | | |
3960 | | - | |
| 3960 | + | |
3961 | 3961 | | |
3962 | 3962 | | |
3963 | 3963 | | |
3964 | 3964 | | |
3965 | 3965 | | |
3966 | | - | |
3967 | | - | |
| 3966 | + | |
3968 | 3967 | | |
3969 | | - | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
3970 | 3983 | | |
3971 | 3984 | | |
3972 | 3985 | | |
3973 | 3986 | | |
3974 | | - | |
| 3987 | + | |
3975 | 3988 | | |
3976 | | - | |
| 3989 | + | |
3977 | 3990 | | |
3978 | 3991 | | |
3979 | 3992 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
408 | 407 | | |
409 | 408 | | |
410 | 409 | | |
411 | | - | |
| 410 | + | |
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2307 | 2307 | | |
2308 | 2308 | | |
2309 | 2309 | | |
2310 | | - | |
| 2310 | + | |
2311 | 2311 | | |
2312 | 2312 | | |
2313 | 2313 | | |
| |||
0 commit comments