From 7cb0c6392b431280a624def34f6704984a4f3e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sat, 21 Sep 2013 00:23:49 +0200 Subject: [PATCH] std: add missing #[inline] annotation to the f64 neg method. This was, somehow, missed by #8332. --- src/libstd/num/f64.rs | 1 + 1 file changed, 1 insertion(+) 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 for f64 { } #[cfg(not(test))] impl Neg for f64 { + #[inline] fn neg(&self) -> f64 { -*self } }