Skip to content

Commit 8797c9e

Browse files
committed
std: Deprecate f{32,64}::consts::PI_2
These constants have been unstable for some time now already
1 parent a05ed99 commit 8797c9e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/libcore/num/f32.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ pub mod consts {
7373
/// pi * 2.0
7474
#[unstable(feature = "float_consts",
7575
reason = "unclear naming convention/usefulness")]
76+
#[deprecated(since = "1.2.0", reason = "unclear on usefulness")]
7677
pub const PI_2: f32 = 6.28318530717958647692528676655900576_f32;
7778

7879
/// pi/2.0

src/libcore/num/f64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ pub mod consts {
7373
/// pi * 2.0
7474
#[unstable(feature = "float_consts",
7575
reason = "unclear naming convention/usefulness")]
76+
#[deprecated(since = "1.2.0", reason = "unclear on usefulness")]
7677
pub const PI_2: f64 = 6.28318530717958647692528676655900576_f64;
7778

7879
/// pi/2.0

0 commit comments

Comments
 (0)