Files
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
..
2020-09-25 19:52:01 +01:00
2021-03-26 09:32:29 -07:00
2020-07-27 19:51:13 -05:00
2020-11-05 10:22:08 +01:00