Skip to content

Commit

Permalink
Auto merge of #71204 - JohnTitor:into-vec, r=wesleywiser
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Apr 18, 2020
2 parents 28742a1 + c2f24a1 commit 9d430cb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/liballoc/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9d430cb

Please sign in to comment.