about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2013-09-21 00:23:49 +0200
committerSébastien Crozet <developer@crozet.re>2013-09-21 00:23:49 +0200
commit7cb0c6392b431280a624def34f6704984a4f3e2f (patch)
treefb91391a93f5a8a6570e89a089c05f02557a4a86
parent2a706aab1c5990a37378f2b3fdfef8410c3743b2 (diff)
downloadrust-7cb0c6392b431280a624def34f6704984a4f3e2f.tar.gz
rust-7cb0c6392b431280a624def34f6704984a4f3e2f.zip
std: add missing #[inline] annotation to the f64 neg method.
This was, somehow, missed by #8332.
-rw-r--r--src/libstd/num/f64.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/num/f64.rs b/src/libstd/num/f64.rs
index b0675278238..50a9cb269a8 100644
--- a/src/libstd/num/f64.rs
+++ b/src/libstd/num/f64.rs
@@ -307,6 +307,7 @@ impl Rem<f64,f64> for f64 {
 }
 #[cfg(not(test))]
 impl Neg<f64> for f64 {
+    #[inline]
     fn neg(&self) -> f64 { -*self }
 }