Skip to content

Commit

Permalink
Mark lt as inline in PartialOrd
Browse files Browse the repository at this point in the history
  • Loading branch information
rclanan committed Oct 18, 2014
1 parent 4480caf commit 1b71633
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/cmp.rs
Expand Up @@ -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,
Expand Down

5 comments on commit 1b71633

@bors
Copy link
Contributor

@bors bors commented on 1b71633 Oct 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from sfackler
at rclanan@1b71633

@bors
Copy link
Contributor

@bors bors commented on 1b71633 Oct 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging rclanan/rust/mark-lt-partialord-inline = 1b71633 into auto

@bors
Copy link
Contributor

@bors bors commented on 1b71633 Oct 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rclanan/rust/mark-lt-partialord-inline = 1b71633 merged ok, testing candidate = 18062c1

@bors
Copy link
Contributor

@bors bors commented on 1b71633 Oct 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 1b71633 Oct 19, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 18062c1

Please sign in to comment.