From 33b0e4be060c8a3f5cc86b6a3e89d8e980a9a51b Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Fri, 6 Oct 2023 20:29:42 -0400 Subject: Automatically enable cross-crate inlining for small functions --- library/alloc/src/raw_vec.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'library/alloc') diff --git a/library/alloc/src/raw_vec.rs b/library/alloc/src/raw_vec.rs index 01b03de6acb..625b67a79ad 100644 --- a/library/alloc/src/raw_vec.rs +++ b/library/alloc/src/raw_vec.rs @@ -530,6 +530,7 @@ fn alloc_guard(alloc_size: usize) -> Result<(), TryReserveError> { // ensure that the code generation related to these panics is minimal as there's // only one location which panics rather than a bunch throughout the module. #[cfg(not(no_global_oom_handling))] +#[inline(never)] fn capacity_overflow() -> ! { panic!("capacity overflow"); } -- cgit 1.4.1-3-g733a5