diff options
Diffstat (limited to 'src/libstd/cmp.rs')
| -rw-r--r-- | src/libstd/cmp.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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) } } |
