parent
f547a671dc
commit
646f16d7e4
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue