-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use bool
instead of PartiolOrd
as return value of the comparison closure in {slice,Iteraotr}::is_sorted_by
#118811
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This comment has been minimized.
This comment has been minimized.
I have following concern:
|
Is sorted is an unstable feature, so breaking changes are allowed. |
(this is marked as
S-waiting-on-author
|
@rustbot review Ty for the pointer @WaffleLapkin |
r=me with commits squashed. Thanks! |
c2c00f5
to
606eeb8
Compare
@bors r=Mark-Simulacrum |
@EbbDrop: 🔑 Insufficient privileges: Not in reviewers |
@Mark-Simulacrum Looks like i am not allowed to use that bors command |
@bors r=Mark-Simulacrum |
Rollup of 8 pull requests Successful merges: - rust-lang#116090 (Implement strict integer operations that panic on overflow) - rust-lang#118811 (Use `bool` instead of `PartiolOrd` as return value of the comparison closure in `{slice,Iteraotr}::is_sorted_by`) - rust-lang#119081 (Add Ipv6Addr::is_ipv4_mapped) - rust-lang#119461 (Use an interpreter in MIR jump threading) - rust-lang#119996 (Move OS String implementation into `sys`) - rust-lang#120015 (coverage: Format all coverage tests with `rustfmt`) - rust-lang#120027 (pattern_analysis: Remove `Ty: Copy` bound) - rust-lang#120084 (fix(rust-analyzer): use new pkgid spec to compare) r? `@ghost` `@rustbot` modify labels: rollup
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.
Changes the function signature of the closure given to
{slice,Iteraotr}::is_sorted_by
to return abool
instead of aPartiolOrd
as suggested by the libs-api team here: #53485 (comment).This means these functions now return true if the closure returns true for all the pairs of values.