1
Fork 0

Remove #[inline(always)] on Vec::into_boxed_slice

This commit is contained in:
Anthony Ramine 2018-04-15 10:34:57 +02:00
parent d4dff03e7c
commit b59fa0d9e8

View file

@ -638,7 +638,6 @@ impl<T> Vec<T> {
/// assert_eq!(slice.into_vec().capacity(), 3);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[inline(always)]
pub fn into_boxed_slice(mut self) -> Box<[T]> {
unsafe {
self.shrink_to_fit();