diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index d588f0c53b1..d00824f8be6 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -45,6 +45,7 @@ pub trait TotalOrd { pure fn cmp(&self, other: &Self) -> Ordering; } +#[inline(always)] pure fn icmp(a: &T, b: &T) -> Ordering { if *a < *b { Less } else if *a > *b { Greater }