unsafe fn increase_refcount<T: ArcWake>(data: *const ()) {
    // Retain Arc by creating a copy
    let arc: Arc<T> = Arc::from_raw(data as *const T);
    let arc_clone = arc.clone();
    // Forget the Arcs again, so that the refcount isn't decrased
    mem::forget(arc);
    mem::forget(arc_clone);
}
// FIXME: panics on Arc::clone / refcount changes could wreak havoc on the
// code here. We should guard against this by aborting.
panics on Arc::clone / refcount changes could wreak havoc on the
code here. We should guard against this by aborting.
panics on Arc :: clone / refcount changes could wreak havoc on the code here . We should guard against this by aborting .
unsafe fn increase_refcount<T: ArcWake>(data: *const ()) {
    // Retain Arc by creating a copy
    let arc: Arc<T> = Arc::from_raw(data as *const T);
    let arc_clone = arc.clone();
    // Forget the Arcs again, so that the refcount isn't decrased
    mem::forget(arc);
    mem::forget(arc_clone);
}
unsafe fn increase_refcount < T : ArcWake > ( data : * const ( ) ) { // Retain Arc by creating a copy let arc : Arc < T > = Arc :: from_raw ( data as * const T ) ; let arc_clone = arc . clone ( ) ; // Forget the Arcs again, so that the refcount isn't decrased mem :: forget ( arc ) ; mem :: forget ( arc_clone ) ; }
FIXME: panics on Arc::clone / refcount changes could wreak havoc on the
code here.
FIXME : panics on Arc :: clone / refcount changes could wreak havoc on the code here .
data
*const ()