Skip to content

Commit 49ec935

Browse files
committed
wasm32: Inline a trivial function in libstd
No need for this to actually show up in optimized non-LTO executables!
1 parent f6e9a6e commit 49ec935

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/liballoc_system/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ mod platform {
405405

406406
#[cfg(not(target_feature = "atomics"))]
407407
mod lock {
408+
#[inline]
408409
pub fn lock() {} // no atomics, no threads, that's easy!
409410
}
410411
}

0 commit comments

Comments
 (0)