Skip to content

Commit

Permalink
Rollup merge of rust-lang#33357 - pcwalton:inline-mem-forget, r=brson
Browse files Browse the repository at this point in the history
libcore: Inline `mem::forget()`.

Was causing severe performance problems in WebRender.

r? @brson
  • Loading branch information
Manishearth committed May 3, 2016
2 parents 51a3a8f + 237eb72 commit 676fd36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/mem.rs
Original file line number Diff line number Diff line change
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 676fd36

Please sign in to comment.