Skip to content

Commit 0649b16

Browse files
committed
Auto merge of #27822 - arielb1:inline-round-take-2, r=Gankro
This speeds up rustc on #25916 from 1.36±0.022s to 1.326±0.025s Tests pass locally (even on 32-bit :-) r? @gankro
2 parents e907fab + 21eae93 commit 0649b16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/collections/hash/table.rs

+1
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ impl<K, V, M: Deref<Target=RawTable<K, V>>> GapThenFull<K, V, M> {
511511
/// # Panics
512512
///
513513
/// Panics if `target_alignment` is not a power of two.
514+
#[inline]
514515
fn round_up_to_next(unrounded: usize, target_alignment: usize) -> usize {
515516
assert!(target_alignment.is_power_of_two());
516517
(unrounded + target_alignment - 1) & !(target_alignment - 1)

0 commit comments

Comments
 (0)