diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 56d268bf37c..a0f2a2adcb6 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -110,6 +110,7 @@ pub use intrinsics::transmute; /// } /// } /// ``` +#[inline] #[stable(feature = "rust1", since = "1.0.0")] pub fn forget(t: T) { unsafe { intrinsics::forget(t) }