From 49ec93586ba46b429b8a51e186b5a3719e6bc7d1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 28 Oct 2018 08:26:01 -0700 Subject: [PATCH] wasm32: Inline a trivial function in libstd No need for this to actually show up in optimized non-LTO executables! --- src/liballoc_system/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/liballoc_system/lib.rs b/src/liballoc_system/lib.rs index 15283036bb4..0e6887a5082 100644 --- a/src/liballoc_system/lib.rs +++ b/src/liballoc_system/lib.rs @@ -405,6 +405,7 @@ fn drop(&mut self) { #[cfg(not(target_feature = "atomics"))] mod lock { + #[inline] pub fn lock() {} // no atomics, no threads, that's easy! } } -- 2.44.0