Skip to content

Commit

Permalink
Rollup merge of rust-lang#59503 - crlf0710:stablize_copysign, r=Simon…
Browse files Browse the repository at this point in the history
…Sapin

Stablize {f32,f64}::copysign().

Stablization PR for rust-lang#55169/rust-lang#58046. Please check if i'm doing it correctly. Is 1.35.0 good to go?
  • Loading branch information
Centril committed Mar 29, 2019
2 parents 0494cff + d9bdd01 commit 18680ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/libstd/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ impl f32 {
/// # Examples
///
/// ```
/// #![feature(copysign)]
/// use std::f32;
///
/// let f = 3.5_f32;
Expand All @@ -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) }
}
Expand Down
3 changes: 1 addition & 2 deletions src/libstd/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ impl f64 {
/// # Examples
///
/// ```
/// #![feature(copysign)]
/// use std::f64;
///
/// let f = 3.5_f64;
Expand All @@ -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) }
}
Expand Down

0 comments on commit 18680ae

Please sign in to comment.