-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Added into_value function to ControlFlow<T, T> #137495
base: master
Are you sure you want to change the base?
Added into_value function to ControlFlow<T, T> #137495
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @scottmcm (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thanks! @bors r+ rollup |
@bors r- Please squash this into one commit and update the title so it doesn't say "const". In the future, please make sure the commit history isn't so granular if it's not meaningfully/usefully reflected in the final state of the PR. |
Fixed issue with usage of generics and moved feature gate to crate root Removed const tag Fixed alphabetical ordering of feature gate, added same to doctest Removed crate-level declaration of feature gate control_flow_into_value Used const_precise_live_drops to constify into_value without issue of a drop
0216ce3
to
f49b6c6
Compare
Have changed the function signature back to Have also squashed the PR into a single commit. Will keep in mind to take particular care of the commit history of future PRs. Please let me know if this PR look good. @rustbot review |
@bors r+ |
…ble-control-flow-into-value, r=jhpratt Added into_value function to ControlFlow<T, T>
Context
Adds a function
into_value
that enables the value within a ControlFlow<T, T> enum to be extracted.This is an unstable feature.
cc: #137461
r? @scottmcm @chenyukang