diff options
| author | bors <bors@rust-lang.org> | 2014-10-19 10:57:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-10-19 10:57:09 +0000 |
| commit | 18062c1e96a7f62194de2a851bf3c779aa71cb7d (patch) | |
| tree | 8559543253b44d504d84994d730de2d5cfd560ed | |
| parent | e99dd205f8442a89dd888fd88b9a7fed85e7931a (diff) | |
| parent | 1b7163358f9750fec725d1840d1fe23f7dd93ebc (diff) | |
| download | rust-18062c1e96a7f62194de2a851bf3c779aa71cb7d.tar.gz rust-18062c1e96a7f62194de2a851bf3c779aa71cb7d.zip | |
auto merge of #18138 : rclanan/rust/mark-lt-partialord-inline, r=sfackler
Fixes issue #18090
| -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 a567eaa57d5..9542b28e981 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<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, |
