]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #92287 - JulianKnodt:slice_remainder, r=yaahc
authorbors <bors@rust-lang.org>
Mon, 18 Apr 2022 23:34:24 +0000 (23:34 +0000)
committerbors <bors@rust-lang.org>
Mon, 18 Apr 2022 23:34:24 +0000 (23:34 +0000)
Add slice::remainder

This adds a remainder function to the Slice iterator, so that a caller can access unused
elements if iteration stops.

Addresses #91733


Trivial merge