summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2023-10-06 20:29:42 -0400
committerBen Kimock <kimockb@gmail.com>2023-10-17 19:53:51 -0400
commit33b0e4be060c8a3f5cc86b6a3e89d8e980a9a51b (patch)
tree79040aac88d1e13a620fd8d730822a727a6cf323 /library/alloc/src
parent09df6108c84fdec400043d99d9ee232336fd5a9f (diff)
downloadrust-33b0e4be060c8a3f5cc86b6a3e89d8e980a9a51b.tar.gz
rust-33b0e4be060c8a3f5cc86b6a3e89d8e980a9a51b.zip
Automatically enable cross-crate inlining for small functions
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/raw_vec.rs1
1 files changed, 1 insertions, 0 deletions
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");
 }