libcore: Remove debugging code from transmute.

Was causing huge code bloat.
This commit is contained in:
Patrick Walton 2012-09-12 19:08:01 -07:00
parent df712ab3d5
commit 59c3c6c147
1 changed files with 0 additions and 3 deletions

View File

@ -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
}