-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Tracking Issue for const_slice_make_iter
#137737
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Comments
@rustbot label +T-libs-api |
Zalathar
added a commit
to Zalathar/rust
that referenced
this issue
Apr 1, 2025
…e_iter, r=dtolnay Make slice iterator constructors unstably const See [tracking issue](rust-lang#137737) for justification.
Zalathar
added a commit
to Zalathar/rust
that referenced
this issue
Apr 1, 2025
…e_iter, r=dtolnay Make slice iterator constructors unstably const See [tracking issue](rust-lang#137737) for justification.
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 1, 2025
…iter, r=dtolnay Make slice iterator constructors unstably const See [tracking issue](rust-lang#137737) for justification.
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 2, 2025
…iter, r=<try> Make slice iterator constructors unstably const See [tracking issue](rust-lang#137737) for justification. try-job: aarch64-apple try-job: x86_64-gnu
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 3, 2025
…iter, r=dtolnay Make slice iterator constructors unstably const See [tracking issue](rust-lang#137737) for justification. try-job: aarch64-apple try-job: x86_64-gnu
github-actions bot
pushed a commit
to rust-lang/rustc-dev-guide
that referenced
this issue
Apr 7, 2025
…tolnay Make slice iterator constructors unstably const See [tracking issue](rust-lang/rust#137737) for justification. try-job: aarch64-apple try-job: x86_64-gnu
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
Apr 7, 2025
…tolnay Make slice iterator constructors unstably const See [tracking issue](rust-lang/rust#137737) for justification. try-job: aarch64-apple try-job: x86_64-gnu
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this issue
Apr 8, 2025
…iter, r=dtolnay Make slice iterator constructors unstably const See [tracking issue](rust-lang#137737) for justification. try-job: aarch64-apple try-job: x86_64-gnu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(const_slice_make_iter)]
This is a tracking issue for making the following methods
const
:slice::iter
slice::iter_mut
slice::windows
slice::chunks
slice::chunks_mut
slice::chunks_exact
slice::chunks_exact_mut
slice::array_chunks
slice::array_chunks_mut
slice::array_windows
slice::rchunks
slice::rchunks_mut
slice::rchunks_exact
slice::rchunks_exact_mut
slice::chunk_by
slice::chunk_by_mut
This enables the storing iterators in associated constants, which can be marginally helpful for some esoteric use cases:
Now, you might be saying, that seems extremely niche. And you'd be right. But with
const
getting stronger and stronger with each release, having unnecessaryconst
limitations is preventing code reuse betweenconst
and non-const
functions.Public API
Steps
Unresolved Questions
Footnotes
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: