Tracking Issue for `#![feature(control_flow_ok)]`
Open
@jogru0 is already working on this.
Since Apr 24, 2025.
C-tracking-issue
disposition-merge
finished-final-comment-period
T-libs
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Feature gate: #![feature(control_flow_ok)]
This is a tracking issue for ControlFlow::continue_ok and ControlFlow::break_ok, as proposed in https://github.com/rust-lang/libs-team/issues/444.
(The other part of this ACP was already implemented in https://github.com/rust-lang/rust/pull/137449.)
Public API
impl<B, C> ControlFlow<B, C> {
const fn continue_ok(self) -> Result<C, B>;
const fn break_ok(self) -> Result<B, C>;
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- Implementation: #140267
- 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.
Assessment
This issue has not been assessed yet.