]> git.lizzy.rs Git - rust.git/commitdiff
wasm32: Inline a trivial function in libstd
authorAlex Crichton <alex@alexcrichton.com>
Sun, 28 Oct 2018 15:26:01 +0000 (08:26 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 1 Nov 2018 15:24:53 +0000 (08:24 -0700)
No need for this to actually show up in optimized non-LTO executables!

src/liballoc_system/lib.rs

index 15283036bb49522d35aec181804831dba3fb4dce..0e6887a508223331201cca2a0363240d99a312dd 100644 (file)
@@ -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!
     }
 }