Constify ControlFlow methods with unstable bounds#148285
Merged
bors merged 2 commits intorust-lang:masterfrom Nov 10, 2025
Merged
Constify ControlFlow methods with unstable bounds#148285bors merged 2 commits intorust-lang:masterfrom
ControlFlow methods with unstable bounds#148285bors merged 2 commits intorust-lang:masterfrom
Conversation
Collaborator
|
rustbot has assigned @Mark-Simulacrum. Use |
hkBst
approved these changes
Oct 30, 2025
| #[rustc_const_unstable(feature = "const_control_flow", issue = "none")] | ||
| pub const fn map_break<T, F>(self, f: F) -> ControlFlow<T, C> | ||
| where | ||
| F: [const] FnOnce(B) -> T + [const] Destruct, |
Member
There was a problem hiding this comment.
Might it be good to have something like [const] (A+B+C)?
Member
|
r=me with a tracking issue, I think. |
3 tasks
6d56cae to
3175799
Compare
Collaborator
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Contributor
Author
|
@Mark-Simulacrum ping |
Member
|
@bors r+ rollup |
Collaborator
bors
added a commit
that referenced
this pull request
Nov 9, 2025
Rollup of 4 pull requests Successful merges: - #148248 (Constify `ControlFlow` methods without unstable bounds) - #148285 (Constify `ControlFlow` methods with unstable bounds) - #148510 (compiletest: Do the known-directives check only once, and improve its error message) - #148655 (Fix invalid macro tag generation for keywords which can be followed by values) r? `@ghost` `@rustbot` modify labels: rollup
rust-timer
added a commit
that referenced
this pull request
Nov 10, 2025
github-actions bot
pushed a commit
to model-checking/verify-rust-std
that referenced
this pull request
Nov 30, 2025
…rk-Simulacrum Constify `ControlFlow` methods with unstable bounds Feature: `const_control_flow` Tracking issue: rust-lang#148739 This PR constifies the methods on `ControlFlow` with a dependency on rust-lang#143874.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature:
const_control_flowTracking issue: #148739
This PR constifies the methods on
ControlFlowwith a dependency on #143874.