Tracking Issue for const `hint::select_unpredictable`
Open
Nobody has claimed this yet.
C-tracking-issue
T-libs
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Feature gate: #![feature(const_select_unpredictable)]
This is a tracking issue for the usage of hint::select_unpredictable in constants.
It depends on const Destruct (#133214) and transitively const traits (#143874).
Public API
// core::hint
pub const fn select_unpredictable(condition: bool, true_val: T, false_val: T) -> T
where
T: [const] Destruct;
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- Implementation: #145939
- Final comment period (FCP)^1
- Stabilization PR
Unresolved Questions
- None yet.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the tracking issue and implementation issue #145939, then review the listed dependencies on #133214 and #143874 and the Rust feature-lifecycle stabilization guidance. The tracking work is complete when the final comment period and stabilization PR have been completed; no source files or tests are named here.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100