libcore: Remove debugging code from transmute.
Was causing huge code bloat.
This commit is contained in:
parent
df712ab3d5
commit
59c3c6c147
|
@ -53,11 +53,8 @@ unsafe fn bump_box_refcount<T>(+t: @T) { forget(move t); }
|
|||
*/
|
||||
#[inline(always)]
|
||||
unsafe fn transmute<L, G>(-thing: L) -> G {
|
||||
debug!(">>> in transmute! <<<");
|
||||
debug!("transmute 1: %?", &thing);
|
||||
let newthing: G = reinterpret_cast(&thing);
|
||||
forget(move thing);
|
||||
debug!("transmute 2: %?", &newthing);
|
||||
move newthing
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue