1
Fork 0

core: Make intrinsics::init unsafe

as per #3920
This commit is contained in:
Tim Chevalier 2013-05-09 11:44:52 -07:00
parent f547a671dc
commit 646f16d7e4

View file

@ -42,7 +42,10 @@ pub extern "rust-intrinsic" {
pub fn get_tydesc<T>() -> *();
pub fn init<T>() -> T;
/// init is unsafe because it returns a zeroed-out datum,
/// which is unsafe unless T is POD. We don't have a POD
/// kind yet. (See #4074)
pub unsafe fn init<T>() -> T;
#[cfg(not(stage0))]
pub unsafe fn uninit<T>() -> T;