Skip to content

Commit d4dff03

Browse files
committed
Remove inline on Vec::shrink_to_fit as asked by Alex
1 parent 360f2f0 commit d4dff03

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/liballoc/vec.rs

-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,6 @@ impl<T> Vec<T> {
582582
/// assert!(vec.capacity() >= 3);
583583
/// ```
584584
#[stable(feature = "rust1", since = "1.0.0")]
585-
#[inline]
586585
pub fn shrink_to_fit(&mut self) {
587586
if self.capacity() != self.len {
588587
self.buf.shrink_to_fit(self.len);

0 commit comments

Comments
 (0)