From a613059e3fcfb751f7664f67a4a6c99faf436483 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Fri, 20 Nov 2015 16:11:20 +0300 Subject: Rename #[deprecated] to #[rustc_deprecated] --- src/libstd/num/f32.rs | 2 +- src/libstd/num/f64.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libstd/num') 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 { 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 { 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) } -- cgit 1.4.1-3-g733a5