From 8797c9ec6ee2a00e2398ab736b0467c8e38cb496 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 10 Jun 2015 18:27:58 -0700 Subject: std: Deprecate f{32,64}::consts::PI_2 These constants have been unstable for some time now already --- src/libcore/num/f32.rs | 1 + src/libcore/num/f64.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'src/libcore/num') diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs index 229414fe766..aade9061657 100644 --- a/src/libcore/num/f32.rs +++ b/src/libcore/num/f32.rs @@ -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 diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs index bbc1bdacde7..7c9e846af9b 100644 --- a/src/libcore/num/f64.rs +++ b/src/libcore/num/f64.rs @@ -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 -- cgit 1.4.1-3-g733a5