diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index a93872dfe36b..75160476d71e 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -94,6 +94,7 @@ impl Box { /// let x = Box::new(5); /// ``` #[stable(feature = "rust1", since = "1.0.0")] + #[inline(always)] pub fn new(x: T) -> Box { box x }