core: Make intrinsics::forget unsafe, too

This commit is contained in:
Tim Chevalier 2013-05-09 12:15:37 -07:00
parent 646f16d7e4
commit cd235d4230

View File

@ -50,7 +50,9 @@ pub extern "rust-intrinsic" {
#[cfg(not(stage0))]
pub unsafe fn uninit<T>() -> T;
pub fn forget<T>(_: T) -> ();
/// forget is unsafe because the caller is responsible for
/// ensuring the argument is deallocated already
pub unsafe fn forget<T>(_: T) -> ();
pub fn needs_drop<T>() -> bool;