From 1b7163358f9750fec725d1840d1fe23f7dd93ebc Mon Sep 17 00:00:00 2001 From: Ray Clanan Date: Sat, 18 Oct 2014 11:49:33 -0400 Subject: [PATCH] Mark lt as inline in PartialOrd --- src/libcore/cmp.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index a567eaa57d57f..9542b28e981e1 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,