diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-06-10 18:27:58 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-06-17 09:07:16 -0700 |
| commit | 8797c9ec6ee2a00e2398ab736b0467c8e38cb496 (patch) | |
| tree | 92f77dae7ff60126f28c3380f911379102ed2b67 /src/libcore/num | |
| parent | a05ed9936d97414efdfd460f1e25505c366689d3 (diff) | |
| download | rust-8797c9ec6ee2a00e2398ab736b0467c8e38cb496.tar.gz rust-8797c9ec6ee2a00e2398ab736b0467c8e38cb496.zip | |
std: Deprecate f{32,64}::consts::PI_2
These constants have been unstable for some time now already
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/f32.rs | 1 | ||||
| -rw-r--r-- | src/libcore/num/f64.rs | 1 |
2 files changed, 2 insertions, 0 deletions
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 |
