diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-11-20 16:11:20 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-11-20 16:11:20 +0300 |
| commit | a613059e3fcfb751f7664f67a4a6c99faf436483 (patch) | |
| tree | bf18260a765345837e95ddeb80f0e91f04a4a131 /src/libstd/num | |
| parent | 2228bacd62ca8970a7a59401e78d0c5a34fc0f87 (diff) | |
| download | rust-a613059e3fcfb751f7664f67a4a6c99faf436483.tar.gz rust-a613059e3fcfb751f7664f67a4a6c99faf436483.zip | |
Rename #[deprecated] to #[rustc_deprecated]
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/f32.rs | 2 | ||||
| -rw-r--r-- | src/libstd/num/f64.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/num/f32.rs b/src/libstd/num/f32.rs index ab25fe17c2c..ab15867d365 100644 --- a/src/libstd/num/f32.rs +++ b/src/libstd/num/f32.rs @@ -129,7 +129,7 @@ impl f32 { /// Parses a float as with a given radix #[unstable(feature = "float_from_str_radix", reason = "recently moved API", issue = "27736")] - #[deprecated(since = "1.4.0", + #[rustc_deprecated(since = "1.4.0", reason = "unclear how useful or correct this is")] pub fn from_str_radix(s: &str, radix: u32) -> Result<f32, ParseFloatError> { num::Float::from_str_radix(s, radix) diff --git a/src/libstd/num/f64.rs b/src/libstd/num/f64.rs index b392ab0c8da..cad42ee64f1 100644 --- a/src/libstd/num/f64.rs +++ b/src/libstd/num/f64.rs @@ -86,7 +86,7 @@ impl f64 { /// Parses a float as with a given radix #[unstable(feature = "float_from_str_radix", reason = "recently moved API", issue = "27736")] - #[deprecated(since = "1.4.0", + #[rustc_deprecated(since = "1.4.0", reason = "unclear how useful or correct this is")] pub fn from_str_radix(s: &str, radix: u32) -> Result<f64, ParseFloatError> { num::Float::from_str_radix(s, radix) @@ -355,7 +355,7 @@ impl f64 { pub fn is_sign_positive(self) -> bool { num::Float::is_positive(self) } #[stable(feature = "rust1", since = "1.0.0")] - #[deprecated(since = "1.0.0", reason = "renamed to is_sign_positive")] + #[rustc_deprecated(since = "1.0.0", reason = "renamed to is_sign_positive")] #[inline] pub fn is_positive(self) -> bool { num::Float::is_positive(self) } @@ -380,7 +380,7 @@ impl f64 { pub fn is_sign_negative(self) -> bool { num::Float::is_negative(self) } #[stable(feature = "rust1", since = "1.0.0")] - #[deprecated(since = "1.0.0", reason = "renamed to is_sign_negative")] + #[rustc_deprecated(since = "1.0.0", reason = "renamed to is_sign_negative")] #[inline] pub fn is_negative(self) -> bool { num::Float::is_negative(self) } |
