diff --git a/src/libstd/cmp.rs b/src/libstd/cmp.rs index 28d45abb688..4bfcf2ce92d 100644 --- a/src/libstd/cmp.rs +++ b/src/libstd/cmp.rs @@ -36,6 +36,8 @@ and `Eq` to overload the `==` and `!=` operators. #[lang="eq"] pub trait Eq { fn eq(&self, other: &Self) -> bool; + + #[inline] fn ne(&self, other: &Self) -> bool { !self.eq(other) } }