about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-10-18 12:59:29 +0000
committerbors <bors@rust-lang.org>2015-10-18 12:59:29 +0000
commit140e79385494da83f5a36f8fefa001b2180fa541 (patch)
tree3eac02a92d5b0dd13a91f2aa36693ceaa990df2b /src/liballoc
parent3f2ad610a8e33a1525897afb04774e53aaad3fc2 (diff)
parent6031a58a208d9b1912095ff05846d4119a023c95 (diff)
downloadrust-140e79385494da83f5a36f8fefa001b2180fa541.tar.gz
rust-140e79385494da83f5a36f8fefa001b2180fa541.zip
Auto merge of #29131 - apasel422:transmute, r=bluss
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index e85b7d2d496..4783b4339da 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -137,7 +137,7 @@ pub struct IntermediateBox<T: ?Sized> {
 
 impl<T> Place<T> for IntermediateBox<T> {
     fn pointer(&mut self) -> *mut T {
-        unsafe { ::core::mem::transmute(self.ptr) }
+        self.ptr as *mut T
     }
 }