Rollup merge of #33357 - pcwalton:inline-mem-forget, r=brson

libcore: Inline `mem::forget()`.

Was causing severe performance problems in WebRender.

r? @brson
This commit is contained in:
Manish Goregaokar 2016-05-03 19:09:09 +05:30
commit 676fd362ff
No known key found for this signature in database
GPG Key ID: 3BBF4D3E2EF79F98

View File

@ -110,6 +110,7 @@ pub use intrinsics::transmute;
/// }
/// }
/// ```
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
pub fn forget<T>(t: T) {
unsafe { intrinsics::forget(t) }