diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-08-11 17:27:05 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-08-12 14:55:17 -0700 |
| commit | 8d90d3f36871a00023cc1f313f91e351c287ca15 (patch) | |
| tree | 2d9b616a2468117aa3afe1f6b1f910ff3116776b /src/libcore/num | |
| parent | d07d465cf60033e35eba16b9e431471d54c712f4 (diff) | |
| download | rust-8d90d3f36871a00023cc1f313f91e351c287ca15.tar.gz rust-8d90d3f36871a00023cc1f313f91e351c287ca15.zip | |
Remove all unstable deprecated functionality
This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions.
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/f32.rs | 6 | ||||
| -rw-r--r-- | src/libcore/num/f64.rs | 6 | ||||
| -rw-r--r-- | src/libcore/num/mod.rs | 4 | ||||
| -rw-r--r-- | src/libcore/num/wrapping.rs | 1 |
4 files changed, 0 insertions, 17 deletions
diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs index d0e6d4fa49c..6ce037f17ae 100644 --- a/src/libcore/num/f32.rs +++ b/src/libcore/num/f32.rs @@ -80,12 +80,6 @@ pub mod consts { #[stable(feature = "rust1", since = "1.0.0")] pub const PI: f32 = 3.14159265358979323846264338327950288_f32; - /// 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 #[stable(feature = "rust1", since = "1.0.0")] pub const FRAC_PI_2: f32 = 1.57079632679489661923132169163975144_f32; diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs index bf7da04f995..b9dbc046799 100644 --- a/src/libcore/num/f64.rs +++ b/src/libcore/num/f64.rs @@ -80,12 +80,6 @@ pub mod consts { #[stable(feature = "rust1", since = "1.0.0")] pub const PI: f64 = 3.14159265358979323846264338327950288_f64; - /// 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 #[stable(feature = "rust1", since = "1.0.0")] pub const FRAC_PI_2: f64 = 1.57079632679489661923132169163975144_f64; diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index ad891bf8fa6..ea8a1daf926 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -136,7 +136,6 @@ macro_rules! int_impl { /// assert_eq!(u32::from_str_radix("A", 16), Ok(10)); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[allow(deprecated)] pub fn from_str_radix(src: &str, radix: u32) -> Result<Self, ParseIntError> { from_str_radix(src, radix) } @@ -691,7 +690,6 @@ macro_rules! uint_impl { /// `Err(ParseIntError)` if the string did not represent a valid number. /// Otherwise, `Ok(n)` where `n` is the integer represented by `src`. #[stable(feature = "rust1", since = "1.0.0")] - #[allow(deprecated)] pub fn from_str_radix(src: &str, radix: u32) -> Result<Self, ParseIntError> { from_str_radix(src, radix) } @@ -1395,7 +1393,6 @@ macro_rules! from_str_float_impl { /// number. Otherwise, `Ok(n)` where `n` is the floating-point /// number represented by `src`. #[inline] - #[allow(deprecated)] fn from_str(src: &str) -> Result<Self, ParseFloatError> { Self::from_str_radix(src, 10) } @@ -1408,7 +1405,6 @@ from_str_float_impl!(f64); macro_rules! from_str_radix_int_impl { ($($t:ty)*) => {$( #[stable(feature = "rust1", since = "1.0.0")] - #[allow(deprecated)] impl FromStr for $t { type Err = ParseIntError; fn from_str(src: &str) -> Result<Self, ParseIntError> { diff --git a/src/libcore/num/wrapping.rs b/src/libcore/num/wrapping.rs index 2e3b34af513..8e6ecf3c71e 100644 --- a/src/libcore/num/wrapping.rs +++ b/src/libcore/num/wrapping.rs @@ -9,7 +9,6 @@ // except according to those terms. #![allow(missing_docs)] -#![allow(deprecated)] #![unstable(feature = "wrapping", reason = "may be removed or relocated")] use super::Wrapping; |
