-
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 lazy_cell_into_inner
#125623
Comments
@tspiteri Would you be so kind as to make the tracking issue? (you could even just edit this one) We can edit it from there if we need to change things. |
lazy_cell_consume
Could this be renamed to |
Go for it. |
I was mostly asking for someone to rename the issue, but here we go #127599. Rustbot has really been spot on picking reviewers for me recently. |
lazy_cell_consume
lazy_cell_into_inner
Other cell `into_inner` functions are const and there shouldn't be any problem here. Make the unstable `LazyCell::into_inner` const under the same gate as its stability (`lazy_cell_into_inner`). Tracking issue: rust-lang#125623
…r, r=joboet Mark the unstable LazyCell::into_inner const Other cell `into_inner` functions are const and there shouldn't be any problem here. Make the unstable `LazyCell::into_inner` const under the same gate as its stability (`lazy_cell_into_inner`). Tracking issue: rust-lang#125623
Rollup merge of rust-lang#131712 - tgross35:const-lazy_cell_into_inner, r=joboet Mark the unstable LazyCell::into_inner const Other cell `into_inner` functions are const and there shouldn't be any problem here. Make the unstable `LazyCell::into_inner` const under the same gate as its stability (`lazy_cell_into_inner`). Tracking issue: rust-lang#125623
Other cell `into_inner` functions are const and there shouldn't be any problem here. Make the unstable `LazyCell::into_inner` const under the same gate as its stability (`lazy_cell_into_inner`). Tracking issue: rust-lang#125623
Could this be considered for stabilization? This serves the same purpose as The only downside I see here is that @rustbot label +I-libs-api-nominated |
We discussed this in the libs-api meeting. The use case for this method wasn't very clear and returning Since the initialization function is infallible, we wondered if a |
To the extent people do need the method that returns the closure, that method might make sense to call |
This superceded #109736 now that the
lazy_cell
feature has been stabilized.Feature gate:
#[feature(lazy_cell_into_inner)]
This is a tracking issue for
LazyCell::into_inner
andLazyLock::into_inner
.Public API
Steps / History
Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: