Skip to content

Commit 9d430cb

Browse files
committed
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.
2 parents 28742a1 + c2f24a1 commit 9d430cb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/liballoc/slice.rs

-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ mod hack {
140140
use crate::string::ToString;
141141
use crate::vec::Vec;
142142

143-
#[inline]
144143
pub fn into_vec<T>(b: Box<[T]>) -> Vec<T> {
145144
unsafe {
146145
let len = b.len();

0 commit comments

Comments
 (0)