Cleanup iterators - #8430
Closed
erickt wants to merge 14 commits into
Closed
Conversation
Contributor
|
@erickt: needs a rebase already, looks great though |
Contributor
Author
|
@thestinger: it's (briefly) mergable again. Can you re-review? |
Contributor
|
@erickt: heh, already broken by the last merge |
Contributor
Author
|
@thestinger: Wow, that was more briefly mergable than I expected. Shall we try again? |
Contributor
|
How did you finagle getting rid of the trailing-underscore methods? Has #3429 been fixed? |
Contributor
|
@bstrie: No, it hasn't been fixed. As default methods, they don't encounter the method resolve issue. |
bors
added a commit
that referenced
this pull request
Aug 10, 2013
This PR does a bunch of cleaning up of various APIs. The major one is that it merges `Iterator` and `IteratorUtil`, and renames functions like `transform` into `map`. I also merged `DoubleEndedIterator` and `DoubleEndedIteratorUtil`, as well as I renamed various .consume* functions to .move_iter(). This helps to implement part of #7887.
bors
added a commit
that referenced
this pull request
Aug 10, 2013
U007D
pushed a commit
to U007D/rust-mos
that referenced
this pull request
Aug 21, 2026
8774: feat: Honor `.cargo/config.toml` r=matklad a=Veykril  Implements `cargo/.config` build target and cfg access by using unstable cargo options: - `cargo config get` to read the target triple out of the config to pass to `cargo metadata` --filter-platform - `cargo rustc --print` to read out the `rustc_cfgs`, this causes us to honor `rustflags` and the like. If those commands fail, due to not having a nightly toolchain present for example, they will fall back to invoking rustc directly as we currently do. I personally think it should be fine to use these unstable options as they are unlikely to change(even if they did it shouldn't be a problem due to the fallback) and don't burden the user if they do not have a nightly toolchain at hand since we fall back to the previous behaviour. cc rust-lang#8741 Closes rust-lang#6604, Closes rust-lang#5904, Closes rust-lang#8430, Closes rust-lang#8480 Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
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.
This PR does a bunch of cleaning up of various APIs. The major one is that it merges
IteratorandIteratorUtil, and renames functions liketransformintomap. I also mergedDoubleEndedIteratorandDoubleEndedIteratorUtil, as well as I renamed various .consume* functions to .move_iter(). This helps to implement part of #7887.