]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
library/core/src/slice/mod.rs

Simple merge