Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fn mem::transmute
: Replace with sound `Arc::from_raw(Arc::into_raw(…
……) as *const _)` (#1361) As @Darksonn [pointed out](#1360 (comment)), using `mem::transmute` on an `Arc` is unsound since it's not `#[repr(transparent)]`, and we need to go through `Arc::into_raw` and `Arc::from_raw` with a ptr cast instead.
- Loading branch information