rust/library/core/src/slice
bors 1df20569dd Auto merge of #81354 - SkiFire13:binary-search-assume, r=nagisa
Instruct LLVM that binary_search returns a valid index

This allows removing bound checks when the return value of `binary_search` is used to index into the slice it was call on. I also added a codegen test for this, not sure if it's the right thing to do (I didn't find anything on the dev guide), but it felt so.
2021-03-28 03:51:22 +00:00
..
iter Rename Iterator::get_unchecked 2020-09-25 19:52:01 +01:00
ascii.rs Use iter::zip in library/ 2021-03-26 09:32:29 -07:00
cmp.rs Remove pointer comparison from slice equality 2020-12-26 06:43:51 +00:00
index.rs Convert the rest of the standard library primitives to intra-doc links 2021-02-25 20:32:49 -05:00
iter.rs Rollup merge of #82771 - emilio:iter-mut-as-slice, r=m-ou-se 2021-03-22 02:20:30 +01:00
memchr.rs Document unsafety in core::slice::memchr 2020-10-05 11:34:03 +02:00
mod.rs Auto merge of #81354 - SkiFire13:binary-search-assume, r=nagisa 2021-03-28 03:51:22 +00:00
raw.rs Convert primitives to use intra-doc links 2021-02-25 20:31:53 -05:00
rotate.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
sort.rs Fix automatic_links warnings 2020-11-05 10:22:08 +01:00
specialize.rs generalize slice::fill specialization for byte-sized items 2021-03-18 00:25:20 +01:00