Delete deprecated & unstable range-specific step_by#43012
Merged
bors merged 1 commit intorust-lang:masterfrom Jul 4, 2017
Merged
Delete deprecated & unstable range-specific step_by#43012bors merged 1 commit intorust-lang:masterfrom
step_by#43012bors merged 1 commit intorust-lang:masterfrom
Conversation
Replacement: 41439 Deprecation: 42310 for 1.19 Fixes 41477
Contributor
|
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
Contributor
Member
|
@bors: r+ |
Collaborator
|
📌 Commit dcd332e has been approved by |
Collaborator
Collaborator
|
☀️ Test successful - status-appveyor, status-travis |
Closed
Contributor
|
This is blocking Servo from upgrading Rust until we find a work around :/ |
Contributor
|
This was pointed out in #27741 (comment) when |
SimonSapin
added a commit
to servo/servo
that referenced
this pull request
Jul 5, 2017
… which is being removed in rust-lang/rust#43012
Contributor
|
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()
}
}
} |
bors-servo
pushed a commit
to servo/servo
that referenced
this pull request
Jul 5, 2017
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 -->
This was referenced Jul 5, 2017
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this pull request
Jul 6, 2017
…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
weilonge
pushed a commit
to fx-dev-playground/gecko
that referenced
this pull request
Jul 6, 2017
…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
JerryShih
pushed a commit
to JerryShih/gecko-dev
that referenced
this pull request
Jul 10, 2017
…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
Manishearth
pushed a commit
to Manishearth/gecko-dev
that referenced
this pull request
Jul 10, 2017
…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
aethanyc
pushed a commit
to aethanyc/gecko-dev
that referenced
this pull request
Jul 11, 2017
…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
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified-and-comments-removed
that referenced
this pull request
Oct 1, 2019
…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
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-comments-removed
that referenced
this pull request
Oct 1, 2019
…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
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified
that referenced
this pull request
Oct 1, 2019
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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