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>;
}
Tracking issues are used to record the overall progress of implementation.
They are also uses as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Arc::new_cyclic (#75505)Rc::new_cyclic@Dylan-DPC @KodrAus allow me a day to implement arc_new_cyclic on Rc :)
Most helpful comment
@Dylan-DPC @KodrAus allow me a day to implement
arc_new_cycliconRc:)