diff options
| author | bors <bors@rust-lang.org> | 2017-01-29 06:20:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-01-29 06:20:33 +0000 |
| commit | b37edea656d7dc2e547eeaf1a56fda9254518934 (patch) | |
| tree | 9c219d9d261372919647e19c6347760f79de12d2 | |
| parent | f39f273826101595fcf40d6f7168a486fe75dda8 (diff) | |
| parent | 7ed78fcbdf3648403ff9811e36c10b96bf49b93f (diff) | |
| download | rust-b37edea656d7dc2e547eeaf1a56fda9254518934.tar.gz rust-b37edea656d7dc2e547eeaf1a56fda9254518934.zip | |
Auto merge of #39380 - est31:remove_dead_peq, r=jseyfried
Remove dead recursive partial eq impl Its nowhere used (if it had been used used, the rust stack would have overflown due to the recursion). Its presence was confusing for mrustc. cc @thepowersgang
| -rw-r--r-- | src/librustc_data_structures/accumulate_vec.rs | 2 | ||||
| -rw-r--r-- | src/librustc_data_structures/array_vec.rs | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/src/librustc_data_structures/accumulate_vec.rs b/src/librustc_data_structures/accumulate_vec.rs index 78af655852d..d4bd9e707fd 100644 --- a/src/librustc_data_structures/accumulate_vec.rs +++ b/src/librustc_data_structures/accumulate_vec.rs @@ -25,7 +25,7 @@ use rustc_serialize::{Encodable, Encoder, Decodable, Decoder}; use array_vec::{self, Array, ArrayVec}; -#[derive(PartialEq, Eq, Hash, Debug)] +#[derive(Hash, Debug)] pub enum AccumulateVec<A: Array> { Array(ArrayVec<A>), Heap(Vec<A::Element>) diff --git a/src/librustc_data_structures/array_vec.rs b/src/librustc_data_structures/array_vec.rs index c0b5b7f5173..51e6e09ab50 100644 --- a/src/librustc_data_structures/array_vec.rs +++ b/src/librustc_data_structures/array_vec.rs @@ -52,14 +52,6 @@ impl<A> Hash for ArrayVec<A> } } -impl<A: Array> PartialEq for ArrayVec<A> { - fn eq(&self, other: &Self) -> bool { - self == other - } -} - -impl<A: Array> Eq for ArrayVec<A> {} - impl<A> Clone for ArrayVec<A> where A: Array, A::Element: Clone { |
