diff options
| -rw-r--r-- | src/libcore/cmp.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<T: Ord>(a: &T, b: &T) -> Ordering { if *a < *b { Less } else if *a > *b { Greater } |
