about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-10-28 08:26:01 -0700
committerAlex Crichton <alex@alexcrichton.com>2018-11-01 08:24:53 -0700
commit49ec93586ba46b429b8a51e186b5a3719e6bc7d1 (patch)
treec81f00448ab25c0117cd61a5a9e8178ab8c56eb8
parentf6e9a6e41cd9b1fb687e296b5a6d4c6ad399f862 (diff)
downloadrust-49ec93586ba46b429b8a51e186b5a3719e6bc7d1.tar.gz
rust-49ec93586ba46b429b8a51e186b5a3719e6bc7d1.zip
wasm32: Inline a trivial function in libstd
No need for this to actually show up in optimized non-LTO executables!
-rw-r--r--src/liballoc_system/lib.rs1
1 files changed, 1 insertions, 0 deletions
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 @@ mod platform {
 
     #[cfg(not(target_feature = "atomics"))]
     mod lock {
+        #[inline]
         pub fn lock() {} // no atomics, no threads, that's easy!
     }
 }