Skip to content

Commit 2b1a9e5

Browse files
Auto merge of #146819 - rluvaton:patch-1, r=<try>
perf: change `RawVec` `grow_one` from `#[inline(never)]` to `#[inline]`
2 parents 9f2ef0f + c583068 commit 2b1a9e5

File tree

1 file changed

+1
-1
lines changed
  • library/alloc/src/raw_vec

1 file changed

+1
-1
lines changed

library/alloc/src/raw_vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ impl<T, A: Allocator> RawVec<T, A> {
334334
/// A specialized version of `self.reserve(len, 1)` which requires the
335335
/// caller to ensure `len == self.capacity()`.
336336
#[cfg(not(no_global_oom_handling))]
337-
#[inline(never)]
337+
#[inline]
338338
#[track_caller]
339339
pub(crate) fn grow_one(&mut self) {
340340
self.inner.grow_one(T::LAYOUT)

0 commit comments

Comments
 (0)