We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c2454 commit 72d5810Copy full SHA for 72d5810
library/core/src/match_internals.rs
@@ -15,6 +15,7 @@ macro_rules ! impl_for_primitive {
15
($($t:ty),*) => {
16
$(
17
impl const PatternConstEq for $t {
18
+ #[inline(always)]
19
fn eq(&self, other: &Self) -> bool {
20
*self == *other
21
}
@@ -34,6 +35,7 @@ impl<T> const PatternConstEq for [T]
34
35
where
36
T: ~const PatternConstEq,
37
{
38
39
default fn eq(&self, other: &Self) -> bool {
40
if self.len() != other.len() {
41
return false;
@@ -58,6 +60,7 @@ impl<T> const PatternConstEq for [T]
58
60
59
61
T: ~const PatternConstEq + BytewiseEq<T>,
62
63
64
65
66
0 commit comments