Skip to content

Commit 676fd36

Browse files
committed
Rollup merge of #33357 - pcwalton:inline-mem-forget, r=brson
libcore: Inline `mem::forget()`. Was causing severe performance problems in WebRender. r? @brson
2 parents 51a3a8f + 237eb72 commit 676fd36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/mem.rs

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ pub use intrinsics::transmute;
110110
/// }
111111
/// }
112112
/// ```
113+
#[inline]
113114
#[stable(feature = "rust1", since = "1.0.0")]
114115
pub fn forget<T>(t: T) {
115116
unsafe { intrinsics::forget(t) }

0 commit comments

Comments
 (0)