Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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