about summary refs log tree commit diff
path: root/src/liballoc/vec.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-04-08 09:03:33 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2018-04-08 09:03:33 +0200
commitd4dff03e7c6decd6b545dcb290d2c592969b3d81 (patch)
tree0e7562152354e6107198ed4b073b4a9f74d1c813 /src/liballoc/vec.rs
parent360f2f036d14889f4de37a8b4b6aad0d09772aad (diff)
downloadrust-d4dff03e7c6decd6b545dcb290d2c592969b3d81.tar.gz
rust-d4dff03e7c6decd6b545dcb290d2c592969b3d81.zip
Remove inline on Vec::shrink_to_fit as asked by Alex
Diffstat (limited to 'src/liballoc/vec.rs')
-rw-r--r--src/liballoc/vec.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index e3c036e6aac..3fff28469fe 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -582,7 +582,6 @@ impl<T> Vec<T> {
     /// assert!(vec.capacity() >= 3);
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
-    #[inline]
     pub fn shrink_to_fit(&mut self) {
         if self.capacity() != self.len {
             self.buf.shrink_to_fit(self.len);