Rollup merge of #33357 - pcwalton:inline-mem-forget, r=brson
libcore: Inline `mem::forget()`. Was causing severe performance problems in WebRender. r? @brson
This commit is contained in:
commit
676fd362ff
@ -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) }
|
||||
|
Loading…
Reference in New Issue
Block a user