summary refs log tree commit diff
path: root/library/std/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/std/src
parent09df6108c84fdec400043d99d9ee232336fd5a9f (diff)
downloadrust-33b0e4be060c8a3f5cc86b6a3e89d8e980a9a51b.tar.gz
rust-33b0e4be060c8a3f5cc86b6a3e89d8e980a9a51b.zip
Automatically enable cross-crate inlining for small functions
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/rt.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/rt.rs b/library/std/src/rt.rs
index f1eeb75be7c..5c83f72f3c1 100644
--- a/library/std/src/rt.rs
+++ b/library/std/src/rt.rs
@@ -155,6 +155,7 @@ fn lang_start_internal(
 }
 
 #[cfg(not(test))]
+#[inline(never)]
 #[lang = "start"]
 fn lang_start<T: crate::process::Termination + 'static>(
     main: fn() -> T,