diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/arc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 1e592397014..56c7324090e 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -193,7 +193,7 @@ impl<T> Arc<T> { weak: atomic::AtomicUsize::new(1), data: data, }; - Arc { _ptr: unsafe { NonZero::new(mem::transmute(x)) } } + Arc { _ptr: unsafe { NonZero::new(Box::into_raw(x)) } } } } |
