From d9bdd01ac034344f32d9fd94e404e67b54dbcddb Mon Sep 17 00:00:00 2001 From: CrLF0710 Date: Fri, 29 Mar 2019 03:09:29 +0800 Subject: [PATCH] Stablize {f32,f64}::copysign(). --- src/libstd/f32.rs | 3 +-- src/libstd/f64.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs index 796908b0df943..2952c6aea0023 100644 --- a/src/libstd/f32.rs +++ b/src/libstd/f32.rs @@ -202,7 +202,6 @@ impl f32 { /// # Examples /// /// ``` - /// #![feature(copysign)] /// use std::f32; /// /// let f = 3.5_f32; @@ -216,7 +215,7 @@ impl f32 { /// ``` #[inline] #[must_use] - #[unstable(feature="copysign", issue="55169")] + #[stable(feature = "copysign", since = "1.35.0")] pub fn copysign(self, y: f32) -> f32 { unsafe { intrinsics::copysignf32(self, y) } } diff --git a/src/libstd/f64.rs b/src/libstd/f64.rs index e679a7d2e8c04..3c3a35573adaa 100644 --- a/src/libstd/f64.rs +++ b/src/libstd/f64.rs @@ -180,7 +180,6 @@ impl f64 { /// # Examples /// /// ``` - /// #![feature(copysign)] /// use std::f64; /// /// let f = 3.5_f64; @@ -194,7 +193,7 @@ impl f64 { /// ``` #[inline] #[must_use] - #[unstable(feature="copysign", issue="55169")] + #[stable(feature = "copysign", since = "1.35.0")] pub fn copysign(self, y: f64) -> f64 { unsafe { intrinsics::copysignf64(self, y) } }