Skip to content

Commit 72d5810

Browse files
committed
add inline attribs
1 parent 22c2454 commit 72d5810

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/core/src/match_internals.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ macro_rules ! impl_for_primitive {
1515
($($t:ty),*) => {
1616
$(
1717
impl const PatternConstEq for $t {
18+
#[inline(always)]
1819
fn eq(&self, other: &Self) -> bool {
1920
*self == *other
2021
}
@@ -34,6 +35,7 @@ impl<T> const PatternConstEq for [T]
3435
where
3536
T: ~const PatternConstEq,
3637
{
38+
#[inline(always)]
3739
default fn eq(&self, other: &Self) -> bool {
3840
if self.len() != other.len() {
3941
return false;
@@ -58,6 +60,7 @@ impl<T> const PatternConstEq for [T]
5860
where
5961
T: ~const PatternConstEq + BytewiseEq<T>,
6062
{
63+
#[inline(always)]
6164
fn eq(&self, other: &Self) -> bool {
6265
if self.len() != other.len() {
6366
return false;

0 commit comments

Comments
 (0)