diff options
| author | Nadrieril <Nadrieril@users.noreply.github.com> | 2024-01-21 06:38:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-21 06:38:35 +0100 |
| commit | e8d1c2ef9caacd5e1da012637d9e12375b9839ce (patch) | |
| tree | 286b78d85f518ad94df2ede27bbaa9a675721a65 /compiler/rustc_pattern_analysis/src/errors.rs | |
| parent | b661cd6c57766ea17da0e93daed75c1b37c34757 (diff) | |
| parent | 606eeb84ad780a1cfe35e4d1265d7be4a412389e (diff) | |
| download | rust-e8d1c2ef9caacd5e1da012637d9e12375b9839ce.tar.gz rust-e8d1c2ef9caacd5e1da012637d9e12375b9839ce.zip | |
Rollup merge of #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: https://github.com/rust-lang/rust/issues/53485#issuecomment-1766411980.
This means these functions now return true if the closure returns true for all the pairs of values.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
