Skip to content

Commit

Permalink
libcore: Inline mem::forget().
Browse files Browse the repository at this point in the history
Was causing severe performance problems in WebRender.
  • Loading branch information
pcwalton committed May 2, 2016
1 parent d80497e commit 237eb72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/mem.rs
Expand Up @@ -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) }
Expand Down

0 comments on commit 237eb72

Please sign in to comment.