Skip to content
Permalink
Browse files

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

Was causing severe performance problems in WebRender.
  • Loading branch information
pcwalton committed May 2, 2016
1 parent d80497e commit 237eb7285e5c2d47e4cfdb75116d9ad8e296a6f8
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/libcore/mem.rs
@@ -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) }

0 comments on commit 237eb72

Please sign in to comment.
You can’t perform that action at this time.