about summary refs log tree commit diff
path: root/compiler/rustc_macros/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-30 01:22:42 +0200
committerGitHub <noreply@github.com>2023-07-30 01:22:42 +0200
commitb8895980bc5bc3de8ae4fa2ec16c092c5843d016 (patch)
tree6fd5dc1620ea6a004343f373094814c745452ebb /compiler/rustc_macros/src
parentfa94851b07d0cc0b5a8f0e0834b738735c041083 (diff)
parent31fadf621b858fbffce9485654defcb46a947a90 (diff)
downloadrust-b8895980bc5bc3de8ae4fa2ec16c092c5843d016.tar.gz
rust-b8895980bc5bc3de8ae4fa2ec16c092c5843d016.zip
Rollup merge of #114152 - ttsugriy:master, r=WaffleLapkin
[rustc][data_structures] Simplify binary_search_slice.

Instead of using `binary_search_by_key`, it's possible to use `partition_point` to find the lower bound. This avoids the need to locate the leftmost matching entry separately.

It's also possible to use `partition_point` to find the upper bound, so I plan to send a separate PR for your consideration.
Diffstat (limited to 'compiler/rustc_macros/src')
0 files changed, 0 insertions, 0 deletions