Looking for refutation of the soundness of this idea:
I take an
Rc, created on one thread, assume it does have clones, and I convert it such that it won't automatically drop (either through
Rc::into_raw). I then use unsafe to send it to another thread. The other thread never dereferences, clones, or drops the
Rc (leak on panic). At some point, I send the handle back to the original thread, where it is converted back to an
Rc and used.
Is this sound? Does the soundness depend on what is stored in the Rc?