about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-04-18 08:03:38 +0000
committerbors <bors@rust-lang.org>2020-04-18 08:03:38 +0000
commit9d430cb351d63c07bc6d71d8a58e2516acccc729 (patch)
tree7d3ec38cc1392dd77d087cebff940a8816ce76e0 /src/liballoc
parent28742a1146f10a4f09369baad027a464acb7a766 (diff)
parentc2f24a1d9467715532ade546d0a49fc878e2831c (diff)
downloadrust-9d430cb351d63c07bc6d71d8a58e2516acccc729.tar.gz
rust-9d430cb351d63c07bc6d71d8a58e2516acccc729.zip
Auto merge of #71204 - JohnTitor:into-vec, r=wesleywiser
perf: Remove inline attribute from `into_vec()`

It was introduced in #70565 and is likely related to this perf results: https://perf.rust-lang.org/compare.html?start=1edcfc83c6a08ddc5e63fc652b149baea0236e7c&end=d249d756374737eb014079901ac132f1e1ed905e&stat=instructions:u
Let's check if it's related to that.
r? @wesleywiser could you kick off perf check? I don't think I can do it.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/slice.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs
index 955cbe77819..c13e90a3d70 100644
--- a/src/liballoc/slice.rs
+++ b/src/liballoc/slice.rs
@@ -140,7 +140,6 @@ mod hack {
     use crate::string::ToString;
     use crate::vec::Vec;
 
-    #[inline]
     pub fn into_vec<T>(b: Box<[T]>) -> Vec<T> {
         unsafe {
             let len = b.len();