Skip to content

Draft: Make into_parts methods on Vec associated functions #141509

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GoldsteinE
Copy link
Contributor

(doesn’t need review for now, posted to accompany stabilization report)

@rustbot
Copy link
Collaborator

rustbot commented May 24, 2025

r? @ibraheemdev

rustbot has assigned @ibraheemdev.
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 May 24, 2025
@jieyouxu
Copy link
Member

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 May 24, 2025
@rustbot rustbot assigned BurntSushi and unassigned ibraheemdev May 24, 2025
@jieyouxu jieyouxu added the needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. label May 24, 2025
@GoldsteinE
Copy link
Contributor Author

GoldsteinE commented May 24, 2025

This PR is basically just to link to these patches from #65816 (comment). This will need to be rebased after #141219 is merged, and it might not be needed at all if open questions are resolved the other way in the main issue. The proper place for FCP is probably also the tracking issue, although I’m not that familiar with the process.

This hopefully helps to catch cases where these arguments are
accidentally swapped.
This is more consistent with `Box::into_raw()` and clears out potential
confusion about whether the method acts on a vector or on a slice.
@GoldsteinE GoldsteinE force-pushed the vec-into-raw-parts branch from 2bb1d8e to efdd43d Compare May 24, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. 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. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants