Skip to content

Commit 237eb72

Browse files
committed
libcore: Inline mem::forget().
Was causing severe performance problems in WebRender.
1 parent d80497e commit 237eb72

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)