Skip to content

Commit 533d7d1

Browse files
kornelskiRalfJung
andauthored
Comment handle_reserve_error
Co-authored-by: Ralf Jung <[email protected]>
1 parent 17b7f55 commit 533d7d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/alloc/src/raw_vec.rs

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

577-
// Central function for reserve error handling.
577+
/// Central function for reserve error handling.
578+
/// Deliberately non-generic to reduce codegen bloat!
578579
#[cfg(not(no_global_oom_handling))]
579580
#[cold]
580581
fn handle_reserve_error(e: TryReserveError) -> ! {

0 commit comments

Comments
 (0)