Move slice::check_range
to RangeBounds
#76885
Merged
slice::check_range
to RangeBounds
#76885