Skip to content
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

From iterator for more tuples #132431

Merged
merged 2 commits into from
Dec 26, 2024
Merged

Conversation

shahn
Copy link
Contributor

@shahn shahn commented Oct 31, 2024

No description provided.

@rustbot
Copy link
Collaborator

rustbot commented Oct 31, 2024

r? @joboet

rustbot has assigned @joboet.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 31, 2024
@shahn
Copy link
Contributor Author

shahn commented Oct 31, 2024

this really is just a draft to extend on #132187 and should not be merged for now. I am not sure if these two impl stabilizations should be separate or not. Will rebase this and un-draft if #132187 gets accepted

r? libs-api

@rustbot rustbot added the T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. label Oct 31, 2024
@rustbot rustbot assigned Amanieu and unassigned joboet Oct 31, 2024
@Amanieu Amanieu removed the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Nov 3, 2024
@Amanieu
Copy link
Member

Amanieu commented Nov 3, 2024

@rfcbot fcp merge

This is similar to #132187 and notably allows collecting an iterator of tuples into a separate collection for each tuple element. Support for this already existed for pairs, this PR extends it to arbitrary tuples.

@rfcbot
Copy link

rfcbot commented Nov 3, 2024

Team member @Amanieu has proposed to merge this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

@rfcbot rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. labels Nov 3, 2024
@shahn shahn force-pushed the from_iterator_more_tuples branch from b6a546c to a0b8ca1 Compare December 7, 2024 12:26
@shahn shahn changed the title From iterator more tuples From iterator for more tuples Dec 7, 2024
@shahn shahn marked this pull request as ready for review December 7, 2024 14:16
@shahn
Copy link
Contributor Author

shahn commented Dec 7, 2024

With #132187 merged, this should be ready for review now :)

@shahn
Copy link
Contributor Author

shahn commented Dec 12, 2024

@BurntSushi @joshtriplett @m-ou-se friendly ping if you could give your verdict :)

@rfcbot rfcbot added final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. and removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. labels Dec 14, 2024
@rfcbot
Copy link

rfcbot commented Dec 14, 2024

🔔 This is now entering its final comment period, as per the review above. 🔔

@rfcbot rfcbot added finished-final-comment-period The final comment period is finished for this PR / Issue. to-announce Announce this issue on triage meeting and removed final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. labels Dec 24, 2024
@rfcbot
Copy link

rfcbot commented Dec 24, 2024

The final comment period, with a disposition to merge, as per the review above, is now complete.

As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.

This will be merged soon.

Copy link
Member

@Amanieu Amanieu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from the indentation issue.

library/core/src/iter/traits/collect.rs Outdated Show resolved Hide resolved
@shahn shahn closed this Dec 26, 2024
@shahn shahn force-pushed the from_iterator_more_tuples branch from a0b8ca1 to 7717df2 Compare December 26, 2024 07:46
@shahn
Copy link
Contributor Author

shahn commented Dec 26, 2024

Wait what, this auto-closed somehow. In any case, I hope I fixed the formatting issues. Thank you

@shahn shahn reopened this Dec 26, 2024
@Amanieu
Copy link
Member

Amanieu commented Dec 26, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Dec 26, 2024

📌 Commit 10b2351 has been approved by Amanieu

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 26, 2024
@bors
Copy link
Contributor

bors commented Dec 26, 2024

⌛ Testing commit 10b2351 with merge 78af7da...

@bors
Copy link
Contributor

bors commented Dec 26, 2024

☀️ Test successful - checks-actions
Approved by: Amanieu
Pushing 78af7da to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 26, 2024
@bors bors merged commit 78af7da into rust-lang:master Dec 26, 2024
7 checks passed
@rustbot rustbot added this to the 1.85.0 milestone Dec 26, 2024
@shahn shahn deleted the from_iterator_more_tuples branch December 26, 2024 12:08
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (78af7da): comparison URL.

Overall result: ❌ regressions - no action needed

@rustbot label: -perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.2% [0.1%, 0.3%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

This benchmark run did not return any relevant results for this metric.

Cycles

Results (primary 1.4%, secondary -2.9%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.4% [1.4%, 1.4%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.9% [-2.9%, -2.9%] 1
All ❌✅ (primary) 1.4% [1.4%, 1.4%] 1

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 763.112s -> 764.241s (0.15%)
Artifact size: 330.55 MiB -> 330.53 MiB (-0.01%)

poliorcetics pushed a commit to poliorcetics/rust that referenced this pull request Dec 26, 2024
poliorcetics pushed a commit to poliorcetics/rust that referenced this pull request Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. to-announce Announce this issue on triage meeting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants