Skip to content

Commit dd2753c

Browse files
kornelskijoboet
andauthored
Update library/alloc/src/raw_vec.rs
Co-authored-by: joboet <[email protected]>
1 parent fc241d7 commit dd2753c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ unsafe impl<#[may_dangle] T, A: Allocator> Drop for RawVec<T, A> {
576576

577577
// Central function for reserve error handling.
578578
#[cfg(not(no_global_oom_handling))]
579-
#[inline]
579+
#[cold]
580580
fn handle_reserve_error(e: TryReserveError) -> ! {
581581
match e.kind() {
582582
CapacityOverflow => capacity_overflow(),

0 commit comments

Comments
 (0)