-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
Tracking Issue for OnceCell::new_init #159859
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Feature gate:
#![feature(once_cell_new_init)]This is a tracking issue for
OnceCell::new_init, as discussed in the ACP: rust-lang/libs-team#817Sister Tracking issue for
OnceLock::new_init: #159860Currently, it is impossible to create an already initialized version of
OnceCell:From<T>implementation forOnceCell<T>This new method aims to solve both of these issues.
Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Unresolved Questions
new_init, or something else? Some alternatives:new_initialized,with_value, ...Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩