diff --git a/src/liballoc_system/lib.rs b/src/liballoc_system/lib.rs index 15283036bb495..0e6887a508223 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! } }