-
Notifications
You must be signed in to change notification settings - Fork 14k
Constify ControlFlow methods with unstable bounds
#148285
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
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use |
| #[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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might it be good to have something like [const] (A+B+C)?
|
r=me with a tracking issue, I think. |
6d56cae to
3175799
Compare
|
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. |
|
@Mark-Simulacrum ping |
|
@bors r+ rollup |
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
Feature:
const_control_flowTracking issue: #148739
This PR constifies the methods on
ControlFlowwith a dependency on #143874.