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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue