From b697260cd72bb0425024e27e7094347a26b61035 Mon Sep 17 00:00:00 2001 From: lishuo Date: Thu, 17 Mar 2022 23:41:55 +0800 Subject: [PATCH 1/2] mask prepare_resize inline attribute with inline-more feature --- src/raw/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raw/mod.rs b/src/raw/mod.rs index fce54d9f0e..403b5fbae3 100644 --- a/src/raw/mod.rs +++ b/src/raw/mod.rs @@ -1346,7 +1346,7 @@ impl RawTableInner { } #[allow(clippy::mut_mut)] - #[inline] + #[cfg_attr(feature = "inline-more", inline)] unsafe fn prepare_resize( &self, table_layout: TableLayout, From 9ba36d853da778b52b657ce25fb05b7ad22d3324 Mon Sep 17 00:00:00 2001 From: lishuo Date: Thu, 24 Mar 2022 19:32:31 +0800 Subject: [PATCH 2/2] mask resize_inner's inline(always) with inline_more instead --- src/raw/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raw/mod.rs b/src/raw/mod.rs index 403b5fbae3..23bf88a0d2 100644 --- a/src/raw/mod.rs +++ b/src/raw/mod.rs @@ -1346,7 +1346,7 @@ impl RawTableInner { } #[allow(clippy::mut_mut)] - #[cfg_attr(feature = "inline-more", inline)] + #[inline] unsafe fn prepare_resize( &self, table_layout: TableLayout, @@ -1421,7 +1421,7 @@ impl RawTableInner { /// This uses dynamic dispatch to reduce the amount of /// code generated, but it is eliminated by LLVM optimizations when inlined. #[allow(clippy::inline_always)] - #[inline(always)] + #[cfg_attr(feature = "inline-more", inline(always))] unsafe fn resize_inner( &mut self, capacity: usize,