-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Delete deprecated & unstable range-specific step_by
#43012
Conversation
Replacement: 41439 Deprecation: 42310 for 1.19 Fixes 41477
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
@bors: r+ |
📌 Commit dcd332e has been approved by |
☀️ Test successful - status-appveyor, status-travis |
This is blocking Servo from upgrading Rust until we find a work around :/ |
This was pointed out in #27741 (comment) when |
… which is being removed in rust-lang/rust#43012
I ended up making this type. Would something like it belong in struct MaybeReverse<I> {
iter: I,
reverse: bool,
}
impl<I: DoubleEndedIterator> Iterator for MaybeReverse<I> {
type Item = I::Item;
fn next(&mut self) -> Option<I::Item> {
if self.reverse {
self.iter.next_back()
} else {
self.iter.next()
}
}
} |
Replace remaining usage of deprecated Range::step_by … which is being removed in rust-lang/rust#43012 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17605) <!-- Reviewable:end -->
…ep_by (from servo:maybereverse); r=nox … which is being removed in rust-lang/rust#43012 Source-Repo: https://github.com/servo/servo Source-Revision: 5baea7b73223283b551cf378bb714491a2383c28 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : bf5a743b537b8b238e83e8c84c69ce98e15ec410
…ep_by (from servo:maybereverse); r=nox … which is being removed in rust-lang/rust#43012 Source-Repo: https://github.com/servo/servo Source-Revision: 5baea7b73223283b551cf378bb714491a2383c28
…ep_by (from servo:maybereverse); r=nox … which is being removed in rust-lang/rust#43012 Source-Repo: https://github.com/servo/servo Source-Revision: 5baea7b73223283b551cf378bb714491a2383c28
…ep_by (from servo:maybereverse); r=nox … which is being removed in rust-lang/rust#43012 Source-Repo: https://github.com/servo/servo Source-Revision: 5baea7b73223283b551cf378bb714491a2383c28
…ep_by (from servo:maybereverse); r=nox … which is being removed in rust-lang/rust#43012 Source-Repo: https://github.com/servo/servo Source-Revision: 5baea7b73223283b551cf378bb714491a2383c28
…ep_by (from servo:maybereverse); r=nox … which is being removed in rust-lang/rust#43012 Source-Repo: https://github.com/servo/servo Source-Revision: 5baea7b73223283b551cf378bb714491a2383c28 UltraBlame original commit: 2828efca932c62b6412d361437ee058577f551ac
…ep_by (from servo:maybereverse); r=nox … which is being removed in rust-lang/rust#43012 Source-Repo: https://github.com/servo/servo Source-Revision: 5baea7b73223283b551cf378bb714491a2383c28 UltraBlame original commit: 2828efca932c62b6412d361437ee058577f551ac
…ep_by (from servo:maybereverse); r=nox … which is being removed in rust-lang/rust#43012 Source-Repo: https://github.com/servo/servo Source-Revision: 5baea7b73223283b551cf378bb714491a2383c28 UltraBlame original commit: 2828efca932c62b6412d361437ee058577f551ac
Using the new one is annoying while this one exists, since the inherent method hides the one on iterator.
Tracking issue: #27741
Replacement: #41439
Deprecation: #42310 for 1.19
Fixes #41477