]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #102977 - lukas-code:is-sorted-hrtb, r=m-ou-se
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 18 Nov 2022 22:48:16 +0000 (17:48 -0500)
committerGitHub <noreply@github.com>
Fri, 18 Nov 2022 22:48:16 +0000 (17:48 -0500)
commit8aca6ccedd0916da959638e6d2aac610d11e79c5
tree3dd002a36395cd4f3d145b1adde338317a071016
parent70fe5f08fffd16dc20506f7d140e47b074f77964
parentf3d7b39cdf483ae543757fbef369c166650e66f2
Rollup merge of #102977 - lukas-code:is-sorted-hrtb, r=m-ou-se

remove HRTB from `[T]::is_sorted_by{,_key}`

Changes the signature of `[T]::is_sorted_by{,_key}` to match `[T]::binary_search_by{,_key}` and make code like https://github.com/rust-lang/rust/issues/53485#issuecomment-885393452 compile.

Tracking issue: https://github.com/rust-lang/rust/issues/53485

~~Do we need an ACP for something like this?~~ Edit: Filed ACP here: https://github.com/rust-lang/libs-team/issues/121
library/core/src/slice/mod.rs