-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Split each iterator adapter and source into individual modules #77697
Conversation
Also, I want to point out some strange things, I've found in sources:
|
096b2b6
to
8aa520f
Compare
☔ The latest upstream changes (presumably #77926) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:
|
b12d214
to
34353c1
Compare
Rebased to fix conflict with #77870 |
☔ The latest upstream changes (presumably #78106) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:
|
What's the status here, is there anything I could help with to move it forward? It would help to get #77822 cleaned up. |
Lukas didn't have time to review this, so I reassigned this to me last week. I'll try to review this asap. Looks like there's a merge conflict right now though. |
Yeah this will easily run into conflicts because it's moving around so much code :) Thanks for the fast reply, and in any case, if there's anything I could help with just let me know. |
34353c1
to
e905429
Compare
This commit also makes fields of `Take` private. I have no idea why they were `pub(super)` before.
Some UI tests started failing after moving iterator adapters to different modules.
e905429
to
4612658
Compare
@WaffleLapkin Thanks! I'll review this tomorrow. :) |
I've verified the code in the split files is exactly identical to the code in the original files, except for imports and a few visibility specifiers. Thanks @WaffleLapkin! @bors r+ |
📌 Commit 4612658 has been approved by |
Yay! Thanks for the review @m-ou-se! |
…=m-ou-se Split each iterator adapter and source into individual modules This PR creates individual modules for each iterator adapter and iterator source. This is done to enhance the readability of corresponding modules (`adapters/mod.rs` and `sources.rs`) which were hard to navigate and read because of lots of repeated lines (e.g.: `adapters/mod.rs` was 3k lines long). This is also in line with some adapters which already had their own modules (`Flatten`, `FlatMap`, `Chain`, `Zip`, `Fuse`). This PR also makes `Take`s adapter fields private (I have no idea why they were `pub(super)` before). r? `@LukasKalbertodt`
Rollup of 10 pull requests Successful merges: - rust-lang#76941 (Add f{32,64}::is_subnormal) - rust-lang#77697 (Split each iterator adapter and source into individual modules) - rust-lang#78305 (Stabilize alloc::Layout const functions) - rust-lang#78608 (Stabilize refcell_take) - rust-lang#78793 (Clean up `StructuralEq` docs) - rust-lang#79267 (BTreeMap: address namespace conflicts) - rust-lang#79293 (Add test for eval order for a+=b) - rust-lang#79295 (BTreeMap: fix minor testing mistakes in rust-lang#78903) - rust-lang#79297 (BTreeMap: swap the names of NodeRef::new and Root::new_leaf) - rust-lang#79299 (Stabilise `then`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This PR creates individual modules for each iterator adapter and iterator source.
This is done to enhance the readability of corresponding modules (
adapters/mod.rs
andsources.rs
) which were hard to navigate and read because of lots of repeated lines (e.g.:adapters/mod.rs
was 3k lines long). This is also in line with some adapters which already had their own modules (Flatten
,FlatMap
,Chain
,Zip
,Fuse
).This PR also makes
Take
s adapter fields private (I have no idea why they werepub(super)
before).r? @LukasKalbertodt