Skip to content

Commit 7f904fb

Browse files
committed
inline extracted function
1 parent dab430b commit 7f904fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/alloc/src/vec/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2637,6 +2637,7 @@ impl<T, A: Allocator> Vec<T, A> {
26372637
/// The bound `I: TrustedLen` ensures that the caller can safely know
26382638
/// how much needs to be allocated.
26392639
#[cfg(not(no_global_oom_handling))]
2640+
#[inline]
26402641
unsafe fn extend_prealloc_trusted_len<I: TrustedLen<Item = T>>(&mut self, iterator: I) {
26412642
unsafe {
26422643
let mut ptr = self.as_mut_ptr().add(self.len());

0 commit comments

Comments
 (0)