We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd748ab + 1a46159 commit dfdfc76Copy full SHA for dfdfc76
src/liballoc/slice.rs
@@ -140,6 +140,9 @@ mod hack {
140
use crate::string::ToString;
141
use crate::vec::Vec;
142
143
+ // We shouldn't add inline attribute to this since this is used in
144
+ // `vec!` macro mostly and causes perf regression. See #71204 for
145
+ // discussion and perf results.
146
pub fn into_vec<T>(b: Box<[T]>) -> Vec<T> {
147
unsafe {
148
let len = b.len();
0 commit comments