diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-02-16 11:53:29 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-03 20:29:01 +0100 |
| commit | b03279aaa2b20f6033e66fc7aea29c0b43e71082 (patch) | |
| tree | 00af08f400072c22c0429b32beb3c039edda2369 | |
| parent | 270f0eef733a625bcee68019189f19dc119f8f24 (diff) | |
| download | rust-b03279aaa2b20f6033e66fc7aea29c0b43e71082.tar.gz rust-b03279aaa2b20f6033e66fc7aea29c0b43e71082.zip | |
inline `Box::new` always.
(You shouldn't use it, but it is a semi-reasonable way to annotate types when necessary.)
| -rw-r--r-- | src/liballoc/boxed.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index a93872dfe36..75160476d71 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -94,6 +94,7 @@ impl<T> Box<T> { /// let x = Box::new(5); /// ``` #[stable(feature = "rust1", since = "1.0.0")] + #[inline(always)] pub fn new(x: T) -> Box<T> { box x } |
