std: Deprecate f{32,64}::consts::PI_2

These constants have been unstable for some time now already
This commit is contained in:
Alex Crichton 2015-06-10 18:27:58 -07:00
parent a05ed9936d
commit 8797c9ec6e
2 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,7 @@ pub mod consts {
/// pi * 2.0
#[unstable(feature = "float_consts",
reason = "unclear naming convention/usefulness")]
#[deprecated(since = "1.2.0", reason = "unclear on usefulness")]
pub const PI_2: f32 = 6.28318530717958647692528676655900576_f32;
/// pi/2.0

View File

@ -73,6 +73,7 @@ pub mod consts {
/// pi * 2.0
#[unstable(feature = "float_consts",
reason = "unclear naming convention/usefulness")]
#[deprecated(since = "1.2.0", reason = "unclear on usefulness")]
pub const PI_2: f64 = 6.28318530717958647692528676655900576_f64;
/// pi/2.0