-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Tracking Issue for const Result
methods
#82814
Comments
Make Result::as_mut const Adding `const` for `Result::as_mut`. Tracking issue: rust-lang#82814
Why aren't there |
The methods probably didn't exist when this issue was created. I'll add them when I'm on my laptop. |
Could you also add |
Going through the full list now. I'm only going to be adding methods that are already stable, as the unstable methods are tracked in their associated issues. |
@pitaj Thanks. I was already subscribed to the issue, but there's nothing actionable in this tracking issue at the moment. |
What happened to |
Looks like any stuff related to constant bounds will take a considerable amount of time to be resolved. |
Yeah, most of the things that were in this feature gate unfortunately depend on "const traits" and that's still very experimental. The remaining methods listed here, however, can probably be stabilized fairly soon. :) |
@rust-lang/libs-api matching |
@rfcbot fcp merge |
Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
stabilize const_result Waiting for FCP to complete in rust-lang#82814 Fixes rust-lang#82814
Rollup merge of rust-lang#131287 - RalfJung:const_result, r=tgross35 stabilize const_result Waiting for FCP to complete in rust-lang#82814 Fixes rust-lang#82814
Feature gate:
#![feature(const_result)]
This is a tracking issue for making a number of
Result
methodsconst fn
.Public API
NB: Many of these methods will need
~const Drop
. They're omitted here for brevity.Note some things are missing compared with
Option
(#67441):unwrap
,expect
: drops the error, so cannot be done in const.flatten
: is not stable yet onResult
, even outside const.take
,replace
: does not exist onResult
.See also #57563.
Please post a comment in this issue if you're submitting a PR that changes any of the above!
The text was updated successfully, but these errors were encountered: