You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking Issue for const_split_off_first_last #138539
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.
This is a tracking issue for using <[T]>::split_off_* functions in const. These functions remove either the first or last element from a slice and return a reference or mutable reference to that element.
The original functions were stabilized with the slice_take feature. slice_take tracking issue: #62280
This would make the following functions on slices const-stable.
These functions were stabilized in 1.87 and made const-unstable in March 2025.
They are implementable in safe stable code, and I'm not aware of any blockers.
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.
Activity
Rollup merge of rust-lang#138540 - okaneco:const_split_off_first_last…
Unrolled build for rust-lang#138540
Rollup merge of rust-lang#138540 - okaneco:const_split_off_first_last…
okaneco commentedon Dec 2, 2025
I'd like to stabilize this feature.
This would make the following functions on slices const-stable.
These functions were stabilized in 1.87 and made const-unstable in March 2025.
They are implementable in safe stable code, and I'm not aware of any blockers.
Current implementation:
rust/library/core/src/slice/mod.rs
Lines 4565 to 4663 in a80d39a