Skip to content

Commit a80c682

Browse files
committed
Use a weaker inline hint on rehash_in_place
1 parent 47a23ab commit a80c682

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/raw/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,8 @@ impl<A: Allocator + Clone> RawTableInner<A> {
14561456
/// This uses dynamic dispatch to reduce the amount of
14571457
/// code generated, but it is eliminated by LLVM optimizations when inlined.
14581458
#[allow(clippy::inline_always)]
1459-
#[inline(always)]
1459+
#[cfg_attr(feature = "inline-more", inline(always))]
1460+
#[cfg_attr(not(feature = "inline-more"), inline)]
14601461
unsafe fn rehash_in_place(
14611462
&mut self,
14621463
hasher: &dyn Fn(&mut Self, usize) -> u64,

0 commit comments

Comments
 (0)