Skip to content

Commit e5666f3

Browse files
saethlingitbot
authored and
gitbot
committed
Update the explanation for why we use box_new in vec!
1 parent e5427c0 commit e5666f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alloc/src/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ macro_rules! vec {
4848
);
4949
($($x:expr),+ $(,)?) => (
5050
<[_]>::into_vec(
51-
// Using the intrinsic produces a dramatic improvement in compile
52-
// time when constructing arrays with many elements.
51+
// Using the intrinsic produces a dramatic improvement in stack usage for
52+
// unoptimized programs using this code path to construct large Vecs.
5353
$crate::boxed::box_new([$($x),+])
5454
)
5555
);

0 commit comments

Comments
 (0)