diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index a567eaa57d57..9542b28e981e 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -209,6 +209,7 @@ pub trait PartialOrd: PartialEq { fn partial_cmp(&self, other: &Self) -> Option; /// This method tests less than (for `self` and `other`) and is used by the `<` operator. + #[inline] fn lt(&self, other: &Self) -> bool { match self.partial_cmp(other) { Some(Less) => true,