-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement advance_by, advance_back_by for slice::{Iter, IterMut} #77633
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors try |
Awaiting bors try build completion |
⌛ Trying commit 3f22d0d with merge e64db831273cd38b9834dbdc2be0b6dd02f22f70... |
☀️ Try build successful - checks-actions, checks-azure |
Queued e64db831273cd38b9834dbdc2be0b6dd02f22f70 with parent 98edd1f, future comparison URL. |
We'll see what perf says, but honestly I'd recommend leaving the specific |
Finished benchmarking try commit (e64db831273cd38b9834dbdc2be0b6dd02f22f70): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
Co-authored-by: Ivan Tham <pickfire@riseup.net>
@scottmcm I'm totally happy to have it either way, I know how picky |
Triage: What's the status on this? |
@timvermeulen Ping from Triage: What's the status on this? |
r? @KodrAus |
r? @m-ou-se |
Adding an implementation for (Or if you change the PR to only add |
@timvermeulen Ping again from Triage: Can you please post the status on this? |
I'm closing this as inactive. If you like, you can reopen this MR and continue. |
…tmcm Implement advance_by, advance_back_by for slice::{Iter, IterMut} Part of rust-lang#77404. Picking up where rust-lang#77633 was closed. I have addressed rust-lang#77633 (comment) by restoring `nth` and `nth_back`. So according to that comment this should already be r=m-ou-se, but it has been sitting for a while.
Part of #77404.
Would be nice if we can get away with getting rid of
nth[_back]
altogether, but if not, we can keepnth
andadvance_by
alongside each other.Also see #76909 (comment).
cc @ecstatic-morse @scottmcm