diff --git a/library/alloc/src/raw_vec.rs b/library/alloc/src/raw_vec.rs index 069c0e4bc53b6..4e7a5f5dcfa49 100644 --- a/library/alloc/src/raw_vec.rs +++ b/library/alloc/src/raw_vec.rs @@ -574,7 +574,8 @@ unsafe impl<#[may_dangle] T, A: Allocator> Drop for RawVec { } } -// 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) -> ! {