Skip to content

Stabilise const_array_each_ref. #145211

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

Closed
wants to merge 1 commit into from

Conversation

bjoernager
Copy link
Contributor

@bjoernager bjoernager commented Aug 10, 2025

Tracking issue: #133289

This PR stabilises the items locked behind the const_array_each_ref feature gate:

impl<T, const N: usize> [T; N] {
    pub const fn each_ref(&self) -> [&T; N];

    pub const fn each_mut(&mut self) -> [&mut T; N];
}

As of writing, FCP is still pending for the feature.

@rustbot label +T-libs-api -T-libs

r? libs-api

@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. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Aug 10, 2025
@bjoernager
Copy link
Contributor Author

@rustbot label -T-libs

@rustbot rustbot removed the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Aug 10, 2025
@CosminPerRam
Copy link

Hey, I was just browsing stabilization PRs, isn't this the same as #143383?
Sorry if I'm mistaken.

@bjoernager
Copy link
Contributor Author

It sure seems like it.

@bjoernager bjoernager closed this Aug 12, 2025
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

4 participants