From f0af39dfae5e6a8f462aeccd1cd4ded81e10d2a5 Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Wed, 22 Apr 2015 22:27:20 +1000 Subject: [PATCH 1/2] Removed deprecation attributes that can no longer be used outside of std --- src/bigint.rs | 2 -- src/integer.rs | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/bigint.rs b/src/bigint.rs index 16b48f6..ed39e1d 100644 --- a/src/bigint.rs +++ b/src/bigint.rs @@ -691,7 +691,6 @@ impl Integer for BigUint { fn lcm(&self, other: &BigUint) -> BigUint { ((self * other) / self.gcd(other)) } /// Deprecated, use `is_multiple_of` instead. - #[deprecated = "function renamed to `is_multiple_of`"] #[inline] fn divides(&self, other: &BigUint) -> bool { self.is_multiple_of(other) } @@ -1488,7 +1487,6 @@ impl Integer for BigInt { } /// Deprecated, use `is_multiple_of` instead. - #[deprecated = "function renamed to `is_multiple_of`"] #[inline] fn divides(&self, other: &BigInt) -> bool { return self.is_multiple_of(other); } diff --git a/src/integer.rs b/src/integer.rs index b5e094b..04257f8 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -82,7 +82,6 @@ pub trait Integer fn lcm(&self, other: &Self) -> Self; /// Deprecated, use `is_multiple_of` instead. - #[deprecated = "function renamed to `is_multiple_of`"] fn divides(&self, other: &Self) -> bool; /// Returns `true` if `other` is a multiple of `self`. @@ -238,7 +237,6 @@ macro_rules! impl_integer_for_isize { } /// Deprecated, use `is_multiple_of` instead. - #[deprecated = "function renamed to `is_multiple_of`"] #[inline] fn divides(&self, other: &$T) -> bool { return self.is_multiple_of(other); } @@ -416,7 +414,6 @@ macro_rules! impl_integer_for_usize { } /// Deprecated, use `is_multiple_of` instead. - #[deprecated = "function renamed to `is_multiple_of`"] #[inline] fn divides(&self, other: &$T) -> bool { return self.is_multiple_of(other); } From f70a07bab74677a485b16afe874d2ff9e148e07c Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Wed, 22 Apr 2015 22:27:51 +1000 Subject: [PATCH 2/2] Incremented version for crates.io --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index af7574a..8195ecd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "num" -version = "0.1.22" +version = "0.1.23" authors = ["The Rust Project Developers"] license = "MIT/Apache-2.0" homepage = "https://github.com/rust-lang/num"