Skip to content

Commit

Permalink
std: add missing #[inline] annotation to the f64 neg method.
Browse files Browse the repository at this point in the history
This was, somehow, missed by #8332.
  • Loading branch information
sebcrozet committed Sep 20, 2013
1 parent 2a706aa commit 7cb0c63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/num/f64.rs
Expand Up @@ -307,6 +307,7 @@ impl Rem<f64,f64> for f64 {
}
#[cfg(not(test))]
impl Neg<f64> for f64 {
#[inline]
fn neg(&self) -> f64 { -*self }
}

Expand Down

5 comments on commit 7cb0c63

@bors
Copy link
Contributor

@bors bors commented on 7cb0c63 Sep 21, 2013

Choose a reason for hiding this comment

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

saw approval from thestinger
at sebcrozet@7cb0c63

@bors
Copy link
Contributor

@bors bors commented on 7cb0c63 Sep 21, 2013

Choose a reason for hiding this comment

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

merging sebcrozet/rust/f64_inline = 7cb0c63 into auto

@bors
Copy link
Contributor

@bors bors commented on 7cb0c63 Sep 21, 2013

Choose a reason for hiding this comment

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

sebcrozet/rust/f64_inline = 7cb0c63 merged ok, testing candidate = 650100d

@bors
Copy link
Contributor

@bors bors commented on 7cb0c63 Sep 21, 2013

@bors
Copy link
Contributor

@bors bors commented on 7cb0c63 Sep 21, 2013

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 = 650100d

Please sign in to comment.