I tried this code:
<code> pub struct Node{} let node = Rc::new(Node{}); let ptr = Rc::into_raw(); let ptr_u64 : u64 = unsafe{std::mem::transmute(ptr)}; let ptr2 : *const Node = unsafe{std::mem::transmute(ptr_u64)}; unsafe{(*ptr2).some_function()};//crash here. I expected to see this happen: normal run.
Instead, this happened:crash in android ndk.
Meta
rustc --version --verbose:
Backtrace