diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-11-26 23:50:12 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-03 10:41:48 -0500 |
| commit | 5cfac942018b3f8e0b384c49d6564fcff25634e6 (patch) | |
| tree | a8ff3c15e0553d35fd3a2f1c2f93cbd1038858a9 /src/libcollections | |
| parent | 09707d70a48b7bb1a180f44e233dfe36b196ad46 (diff) | |
| download | rust-5cfac942018b3f8e0b384c49d6564fcff25634e6.tar.gz rust-5cfac942018b3f8e0b384c49d6564fcff25634e6.zip | |
Deprecate Equiv
Diffstat (limited to 'src/libcollections')
| -rw-r--r-- | src/libcollections/str.rs | 1 | ||||
| -rw-r--r-- | src/libcollections/string.rs | 3 | ||||
| -rw-r--r-- | src/libcollections/vec.rs | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index c6fa1332186..ad0a5e76176 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -563,6 +563,7 @@ impl<'a> Ord for MaybeOwned<'a> { } } +#[allow(deprecated)] #[deprecated = "use std::str::CowString"] impl<'a, S: Str> Equiv<S> for MaybeOwned<'a> { #[inline] diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 8917afa34b1..fbb0bb5c4ce 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -822,7 +822,8 @@ impl<H: hash::Writer> hash::Hash<H> for String { } } -#[experimental = "waiting on Equiv stabilization"] +#[allow(deprecated)] +#[deprecated = "Use overloaded `core::cmp::PartialEq`"] impl<'a, S: Str> Equiv<S> for String { #[inline] fn equiv(&self, other: &S) -> bool { diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index c40f0c19c09..2396cf8cec6 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -609,7 +609,8 @@ impl<T: PartialOrd> PartialOrd for Vec<T> { #[unstable = "waiting on Eq stability"] impl<T: Eq> Eq for Vec<T> {} -#[experimental] +#[allow(deprecated)] +#[deprecated = "Use overloaded `core::cmp::PartialEq`"] impl<T: PartialEq, Sized? V: AsSlice<T>> Equiv<V> for Vec<T> { #[inline] fn equiv(&self, other: &V) -> bool { self.as_slice() == other.as_slice() } |
