about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2016-05-09 11:43:33 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2016-05-09 11:44:55 -0700
commit06f5fa4a0c0493ba76312b07e0f6d2dfa0ca9884 (patch)
treee022e3dbd18ab6b8efd38dca372fa0072c0eb3dd /src/liballoc
parentaf0a433865321ee9fc5287eef63227baf4cba109 (diff)
downloadrust-06f5fa4a0c0493ba76312b07e0f6d2dfa0ca9884.tar.gz
rust-06f5fa4a0c0493ba76312b07e0f6d2dfa0ca9884.zip
Inline RawVec::cap
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/raw_vec.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs
index c407cef25e7..8b3168b29aa 100644
--- a/src/liballoc/raw_vec.rs
+++ b/src/liballoc/raw_vec.rs
@@ -147,6 +147,7 @@ impl<T> RawVec<T> {
     /// Gets the capacity of the allocation.
     ///
     /// This will always be `usize::MAX` if `T` is zero-sized.
+    #[inline(always)]
     pub fn cap(&self) -> usize {
         if mem::size_of::<T>() == 0 {
             !0