-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-concurrencyArea: ConcurrencyArea: ConcurrencyC-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 RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
The feature gate for the issue is #![feature(arc_new_cyclic)]
.
Tracking the following API:
impl<T> Arc<T> {
pub fn new_cyclic(data_fn: impl FnOnce(&Weak<T>) -> T) -> Arc<T>;
}
impl<T> Rc<T> {
pub fn new_cyclic(data_fn: impl FnOnce(&Weak<T>) -> T) -> Rc<T>;
}
Steps
- Add
Arc::new_with()
function for constructing self-referential data structures #72443 - Implement
Arc::new_cyclic
(Add Arc::new_cyclic #75505) - Implement
Rc::new_cyclic
(impl Rc::new_cyclic
#75994) - FCP: Stabilize arc_new_cyclic #90666 (comment)
- Stabilization PR: Stabilize arc_new_cyclic #90666
Unresolved Questions
ogoffart, mental32, Johannesd3, Bale001, yume-chan and 1 more
Metadata
Metadata
Assignees
Labels
A-concurrencyArea: ConcurrencyArea: ConcurrencyC-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 RFCLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.