Skip to content

Commit

Permalink
Comment handle_reserve_error
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <[email protected]>
  • Loading branch information
kornelski and RalfJung authored Mar 23, 2024
1 parent 17b7f55 commit 533d7d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/alloc/src/raw_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,8 @@ unsafe impl<#[may_dangle] T, A: Allocator> Drop for RawVec<T, A> {
}
}

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

0 comments on commit 533d7d1

Please sign in to comment.