auto merge of #18138 : rclanan/rust/mark-lt-partialord-inline, r=sfackler

Fixes issue #18090
This commit is contained in:
bors 2014-10-19 10:57:09 +00:00
commit 18062c1e96
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ pub trait PartialOrd: PartialEq {
fn partial_cmp(&self, other: &Self) -> Option<Ordering>;
/// 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,