diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-10-28 08:26:01 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-11-01 08:24:53 -0700 |
| commit | 49ec93586ba46b429b8a51e186b5a3719e6bc7d1 (patch) | |
| tree | c81f00448ab25c0117cd61a5a9e8178ab8c56eb8 | |
| parent | f6e9a6e41cd9b1fb687e296b5a6d4c6ad399f862 (diff) | |
| download | rust-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.rs | 1 |
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! } } |
